]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/os-windows-nt.cpp
vm: split up TLS code and add a dummy implementation for a dummy OS known as NetBSD
[factor.git] / vm / os-windows-nt.cpp
index 54ee78f9773d8a474c4df7ff4006631888afe19d..2d5881252a10872e4ab6b123de9260c8cc0cdfb5 100755 (executable)
@@ -8,27 +8,6 @@ THREADHANDLE start_thread(void *(*start_routine)(void *), void *args)
        return (void *)CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)start_routine, args, 0, 0);
 }
 
-DWORD dwTlsIndex; 
-
-void init_platform_globals()
-{
-       if ((dwTlsIndex = TlsAlloc()) == TLS_OUT_OF_INDEXES)
-               fatal_error("TlsAlloc failed - out of indexes",0);
-}
-
-void register_vm_with_thread(factor_vm *vm)
-{
-       if (! TlsSetValue(dwTlsIndex, vm))
-               fatal_error("TlsSetValue failed",0);
-}
-
-factor_vm *current_vm()
-{
-       factor_vm *vm = (factor_vm *)TlsGetValue(dwTlsIndex);
-       assert(vm != NULL);
-       return vm;
-}
-
 u64 system_micros()
 {
        FILETIME t;