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); }
void NativeMethod::cleanup_thread(STATE) { delete native_method_environment.get(); native_method_environment.set(NULL); }
void ManagedThread::set_current(ManagedThread* th, std::string name) { th->os_thread_ = pthread_self(); th->set_name(name); _current_thread.set(th); }
void NativeMethod::init_thread(STATE) { NativeMethodEnvironment* env = new NativeMethodEnvironment(state); native_method_environment.set(env); }