예제 #1
0
 void ManagedThread::set_current_thread(ManagedThread* th) {
   utilities::thread::Thread::set_os_name(th->name().c_str());
   th->os_thread_ = pthread_self();
   _current_thread.set(th);
 }
예제 #2
0
 void NativeMethod::cleanup_thread(STATE) {
   delete native_method_environment.get();
   native_method_environment.set(NULL);
 }
예제 #3
0
 void ManagedThread::set_current(ManagedThread* th, std::string name) {
   th->os_thread_ = pthread_self();
   th->set_name(name);
   _current_thread.set(th);
 }
예제 #4
0
 void NativeMethod::init_thread(STATE) {
   NativeMethodEnvironment* env = new NativeMethodEnvironment(state);
   native_method_environment.set(env);
 }