Fix race condition in Process::WorkerThreadProc.

This commit is contained in:
Gunnar Beutner 2013-03-09 15:41:07 +01:00
parent bac7495f49
commit 5a861b0de0
1 changed files with 0 additions and 3 deletions

View File

@ -119,9 +119,6 @@ void Process::WorkerThreadProc(int taskFd)
unsigned int want = MaxTasksPerThread - tasks.size();
if (want > m_Tasks.size())
want = m_Tasks.size();
if (want > 0) {
boost::mutex::scoped_lock lock(m_Mutex);