From 484ead14b51fd933001ac40dc726eab2ad6258e8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 5 Nov 2008 10:27:49 +0000 Subject: [PATCH] Added Thread::Init() to CurrentThread --- src/OpenThreads/pthreads/PThread.c++ | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OpenThreads/pthreads/PThread.c++ b/src/OpenThreads/pthreads/PThread.c++ index 07c99730e..c6a732367 100644 --- a/src/OpenThreads/pthreads/PThread.c++ +++ b/src/OpenThreads/pthreads/PThread.c++ @@ -421,6 +421,7 @@ Thread::~Thread() Thread *Thread::CurrentThread() { + if(!s_isInitialized) Thread::Init(); Thread *thread = static_cast(pthread_getspecific(PThreadPrivateData::s_tls_key));