Fix deadlock in async work queue
Former-commit-id: 3265f2908e8d3aa567b3b9e6b141a7881c795053
This commit is contained in:
parent
fe9f276f95
commit
a2010f17b8
@ -25,7 +25,8 @@ void AsyncWorkQueue::WorkerThreadMain()
|
||||
while (!m_fQuitting)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(m_mutex);
|
||||
m_cvWakeup.wait(lock);
|
||||
if (m_workqueue.empty())
|
||||
m_cvWakeup.wait(lock);
|
||||
|
||||
while (!m_workqueue.empty())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user