mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-17 12:02:36 +01:00
fix a race condition
This commit is contained in:
parent
4bf0328740
commit
416380936a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user