diff --git a/simgear/threads/SGThread.cxx b/simgear/threads/SGThread.cxx index 1a98569d..6123966d 100644 --- a/simgear/threads/SGThread.cxx +++ b/simgear/threads/SGThread.cxx @@ -83,16 +83,6 @@ struct SGThread::PrivateData { bool _started = false; }; -long SGThread::current( void ) -{ -#ifdef _WIN32 - return (long)GetCurrentThreadId(); -#else - return (long)pthread_self(); -#endif -} - - #if _WIN32 ///////////////////////////////////////////////////////////////////////////// @@ -269,6 +259,16 @@ SGThread::join() _privateData->join(); } +long SGThread::current( void ) +{ +#ifdef _WIN32 + return (long)GetCurrentThreadId(); +#else + return (long)pthread_self(); +#endif +} + + SGWaitCondition::SGWaitCondition() : _privateData(new PrivateData) {