]> git.mxchange.org Git - simgear.git/blobdiff - simgear/threads/SGThread.cxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / threads / SGThread.cxx
index 8e5c3a36ac3e69243e8b5f3283aaddbe6db7f03a..0ba71f408fc47485409d15d13c383d9e42f5a2df 100644 (file)
@@ -81,6 +81,10 @@ struct SGThread::PrivateData {
     HANDLE _handle;
 };
 
+long SGThread::current( void ) {
+    return (long)GetCurrentThreadId();
+}
+
 struct SGMutex::PrivateData {
     PrivateData()
     {
@@ -227,6 +231,10 @@ struct SGThread::PrivateData {
     bool _started;
 };
 
+long SGThread::current( void ) {
+    return (long)pthread_self();
+}
+
 struct SGMutex::PrivateData {
     PrivateData()
     {