summaryrefslogtreecommitdiffstats
path: root/source/cIsThread.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-18 18:43:20 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-18 18:43:20 +0100
commitd2b229d227268db7ca9264f2a914a7caf089401c (patch)
treeee64699b379371ce6401a9b61f8667c07be98fc2 /source/cIsThread.cpp
parentWebserver: fixed a compiler warning (diff)
downloadcuberite-d2b229d227268db7ca9264f2a914a7caf089401c.tar
cuberite-d2b229d227268db7ca9264f2a914a7caf089401c.tar.gz
cuberite-d2b229d227268db7ca9264f2a914a7caf089401c.tar.bz2
cuberite-d2b229d227268db7ca9264f2a914a7caf089401c.tar.lz
cuberite-d2b229d227268db7ca9264f2a914a7caf089401c.tar.xz
cuberite-d2b229d227268db7ca9264f2a914a7caf089401c.tar.zst
cuberite-d2b229d227268db7ca9264f2a914a7caf089401c.zip
Diffstat (limited to 'source/cIsThread.cpp')
-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
+}
+
+
+
+