示例#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);
 }