Merge branch 'feature/workqueue-assert-4991' into next

Fixes #4991
This commit is contained in:
Gunnar Beutner 2013-11-03 13:58:02 +01:00
commit d44d06e95a

View File

@ -49,7 +49,7 @@ void WorkQueue::Enqueue(const WorkCallback& item)
{ {
boost::mutex::scoped_lock lock(m_Mutex); boost::mutex::scoped_lock lock(m_Mutex);
ASSERT(m_Stopped); ASSERT(!m_Stopped);
while (m_Items.size() >= m_MaxItems) while (m_Items.size() >= m_MaxItems)
m_CV.wait(lock); m_CV.wait(lock);