diff --git a/Common/Thread/ThreadManager.cpp b/Common/Thread/ThreadManager.cpp index c9a4dfcb69..cc04cb1438 100644 --- a/Common/Thread/ThreadManager.cpp +++ b/Common/Thread/ThreadManager.cpp @@ -59,6 +59,7 @@ static void WorkerThreadFunc(GlobalThreadContext *global, ThreadContext *thread) thread->cond.wait(lock); } } + if (!task) { // Grab one from the global queue if there is any. std::unique_lock lock(global->mutex);