fix a race condition

This commit is contained in:
Guenter Obiltschnig 2015-03-16 16:09:54 +01:00
parent 4bf0328740
commit 416380936a

View File

@ -197,10 +197,11 @@ void PooledThread::run()
_mutex.lock();
if (_pTarget) // a NULL target means kill yourself
{
Runnable* pTarget = _pTarget;
_mutex.unlock();
try
{
_pTarget->run();
pTarget->run();
}
catch (Exception& exc)
{