From 7d8c8aac5aa6c223bda07235804741517f29dbe9 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 16 Nov 2015 08:13:55 +0100 Subject: [PATCH] Use notify_one in WorkQueue::Enqueue fixes #10639 --- lib/base/workqueue.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/base/workqueue.cpp b/lib/base/workqueue.cpp index df98148bc..87200656c 100644 --- a/lib/base/workqueue.cpp +++ b/lib/base/workqueue.cpp @@ -82,8 +82,7 @@ void WorkQueue::Enqueue(const Task& task, bool allowInterleaved) m_Tasks.push_back(task); - if (m_Tasks.size() == 1) - m_CVEmpty.notify_all(); + m_CVEmpty.notify_one(); } /**