Added Thread::Init() to CurrentThread
This commit is contained in:
parent
80a6e5eb2a
commit
484ead14b5
@ -421,6 +421,7 @@ Thread::~Thread()
|
|||||||
|
|
||||||
Thread *Thread::CurrentThread()
|
Thread *Thread::CurrentThread()
|
||||||
{
|
{
|
||||||
|
if(!s_isInitialized) Thread::Init();
|
||||||
|
|
||||||
Thread *thread =
|
Thread *thread =
|
||||||
static_cast<Thread *>(pthread_getspecific(PThreadPrivateData::s_tls_key));
|
static_cast<Thread *>(pthread_getspecific(PThreadPrivateData::s_tls_key));
|
||||||
|
Loading…
Reference in New Issue
Block a user