Fix deadlock in WorkQueue::Join().

This commit is contained in:
Gunnar Beutner 2013-10-17 15:49:53 +02:00
parent 492aed030e
commit 65f4176fa8
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ void WorkQueue::Join(void)
{
boost::mutex::scoped_lock lock(m_Mutex);
m_Joined = true;
m_CV.notify_all();
while (!m_Stopped)
m_CV.wait(lock);
}