Added Thread::Init() to CurrentThread

This commit is contained in:
Robert Osfield 2008-11-05 10:27:49 +00:00
parent 80a6e5eb2a
commit 484ead14b5

View File

@ -421,6 +421,7 @@ Thread::~Thread()
Thread *Thread::CurrentThread()
{
if(!s_isInitialized) Thread::Init();
Thread *thread =
static_cast<Thread *>(pthread_getspecific(PThreadPrivateData::s_tls_key));