mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
Race condition in ThreadPool #1906
This commit is contained in:
parent
6b19b56bd8
commit
5b91bc65b6
@ -192,10 +192,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