From 79efd5df1e47421247b1896de46a3d0f6dd82622 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Fri, 1 Apr 2022 06:39:35 +0200 Subject: [PATCH] Common/WorkQueueThread: Make Shutdown() public, so users can wait for all currently queued tasks to finish when shutting down the thread. --- Source/Core/Common/WorkQueueThread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/WorkQueueThread.h b/Source/Core/Common/WorkQueueThread.h index 88e5516d26..6039f7b3b9 100644 --- a/Source/Core/Common/WorkQueueThread.h +++ b/Source/Core/Common/WorkQueueThread.h @@ -60,7 +60,6 @@ public: bool IsCancelled() const { return m_cancelled.IsSet(); } -private: void Shutdown() { if (m_thread.joinable()) @@ -71,6 +70,7 @@ private: } } +private: void ThreadLoop() { Common::SetCurrentThreadName("WorkQueueThread");