diff options
Diffstat (limited to 'rts/win32/OSThreads.c')
-rw-r--r-- | rts/win32/OSThreads.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rts/win32/OSThreads.c b/rts/win32/OSThreads.c index 818f97b879..d0d97b3c4d 100644 --- a/rts/win32/OSThreads.c +++ b/rts/win32/OSThreads.c @@ -10,9 +10,9 @@ #define _WIN32_WINNT 0x0500 #include "Rts.h" +#include <windows.h> #if defined(THREADED_RTS) #include "RtsUtils.h" -#include <windows.h> /* For reasons not yet clear, the entire contents of process.h is protected * by __STRICT_ANSI__ not being defined. @@ -314,3 +314,9 @@ nat getNumberOfProcessors (void) } #endif /* !defined(THREADED_RTS) */ + +KernelThreadId kernelThreadId (void) +{ + DWORD tid = GetCurrentThreadId(); + return tid; +} |