From 34f8fc557f3a5a114152bfdee287880940c9b46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 30 Nov 2020 13:55:38 +0100 Subject: [PATCH] GameInfoCache: Don't expose the workqueue. Was unused anyway. --- Common/Thread/ThreadManager.cpp | 1 + 1 file changed, 1 insertion(+) 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);