diff options
Diffstat (limited to 'src/jthread/win32')
-rw-r--r-- | src/jthread/win32/jthread.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jthread/win32/jthread.cpp b/src/jthread/win32/jthread.cpp index 54b110bfd..c07425dca 100644 --- a/src/jthread/win32/jthread.cpp +++ b/src/jthread/win32/jthread.cpp @@ -141,6 +141,11 @@ void *JThread::GetReturnValue() return val; } +bool JThread::IsSameThread() +{ + return GetCurrentThreadId() == threadid; +} + #ifndef _WIN32_WCE UINT __stdcall JThread::TheThread(void *param) #else |