summaryrefslogtreecommitdiffstats
path: root/source/cIsThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cIsThread.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/cIsThread.cpp b/source/cIsThread.cpp
index 3f4442f7f..13e9a0a07 100644
--- a/source/cIsThread.cpp
+++ b/source/cIsThread.cpp
@@ -149,3 +149,16 @@ bool cIsThread::Wait(void)
+
+unsigned long cIsThread::GetCurrentID(void)
+{
+ #ifdef _WIN32
+ return (unsigned long) GetCurrentThreadId();
+ #else
+ return (unsigned long) pthread_self();
+ #endif
+}
+
+
+
+