Exemplo n.º 1
0
 void VM::set_current(VM* vm) {
   _current_vm.set(vm);
 }
Exemplo n.º 2
0
 void NativeMethod::init_thread(STATE) {
   NativeMethodEnvironment* env = new NativeMethodEnvironment(state);
   native_method_environment.set(env);
 }
Exemplo n.º 3
0
 void NativeMethod::cleanup_thread(STATE) {
   delete native_method_environment.get();
   native_method_environment.set(NULL);
 }
Exemplo n.º 4
0
void VM::set_current(VM* vm) {
    vm->os_thread_ = pthread_self();
    _current_vm.set(vm);
}