Fix a deadlock in WorkQueue::WorkerThreadProc

refs #8554
This commit is contained in:
Gunnar Beutner 2015-02-27 18:29:21 +01:00
parent 5d1e549063
commit 985c6bc7d9

View File

@ -220,6 +220,10 @@ void WorkQueue::WorkerThreadProc(void)
m_ExceptionCallback(boost::current_exception());
}
/* clear the task so whatever other resources it holds are released
_before_ we re-acquire the mutex */
task = Task();
lock.lock();
m_Processing--;