]> gitweb.factorcode.org Git - factor.git/blob - vm/mvm-none.cpp
b6198afd25df6dcdc210f670d10d73e1cb20bde8
[factor.git] / vm / mvm-none.cpp
1 #include "master.hpp"
2
3 /* Multi-VM threading is not supported on NetBSD due to
4 http://gnats.netbsd.org/25563 */
5
6 namespace factor
7 {
8
9 factor_vm *global_vm;
10
11 void init_mvm()
12 {
13         global_vm = NULL;
14 }
15
16 void register_vm_with_thread(factor_vm *vm)
17 {
18         assert(!global_vm);
19         global_vm = vm;
20 }
21
22 factor_vm *current_vm_p()
23 {
24         return global_vm;
25 }
26
27 }