Move SGThread::current to after the system dependent code which includes the proper header files

This commit is contained in:
Erik Hofman 2020-01-23 13:47:04 +01:00
parent 9f8e6c0634
commit c3ae704610

View File

@ -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)
{