diff options
Diffstat (limited to 'src/jthread/pthread')
-rw-r--r-- | src/jthread/pthread/jthread.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jthread/pthread/jthread.cpp b/src/jthread/pthread/jthread.cpp index 978cac20a..4a5c736eb 100644 --- a/src/jthread/pthread/jthread.cpp +++ b/src/jthread/pthread/jthread.cpp @@ -148,6 +148,11 @@ void *JThread::GetReturnValue() return val; } +bool JThread::IsSameThread() +{ + return pthread_equal(pthread_self(), threadid); +} + void *JThread::TheThread(void *param) { JThread *jthread; |