Further decrease WQ lock contention.

Refs #5246
This commit is contained in:
Gunnar Beutner 2013-12-02 09:14:38 +01:00
parent 553bd3246b
commit 954d2d53a2
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ void WorkQueue::Enqueue(const WorkCallback& callback, bool allowInterleaved)
if (wq_thread)
ProcessItems(lock, true);
else
m_CVEmpty.notify_one();
m_CVEmpty.notify_all();
}
void WorkQueue::Join(void)
@ -119,7 +119,7 @@ void WorkQueue::ProcessItems(boost::mutex::scoped_lock& lock, bool interleaved)
return;
m_Items.pop_front();
m_CVFull.notify_all();
m_CVFull.notify_one();
lock.unlock();