factor/vm/mvm.hpp

19 lines
427 B
C++
Raw Normal View History

2013-05-11 22:14:17 -04:00
namespace factor {
void init_mvm();
2013-05-11 22:14:17 -04:00
void register_vm_with_thread(factor_vm* vm);
factor_vm* current_vm_p();
2013-05-11 22:14:17 -04:00
inline factor_vm* current_vm() {
factor_vm* vm = current_vm_p();
FACTOR_ASSERT(vm != NULL);
return vm;
}
2013-05-11 22:14:17 -04:00
VM_C_API THREADHANDLE start_standalone_factor_in_new_thread(int argc,
vm_char** argv);
2013-05-11 22:14:17 -04:00
extern std::map<THREADHANDLE, factor_vm*> thread_vms;
}