Move SGThread::current to after the system dependent code which includes the proper header files
This commit is contained in:
parent
9f8e6c0634
commit
c3ae704610
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user