summaryrefslogtreecommitdiff
path: root/Source/Core/Common/WorkQueueThread.h
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-04-01 06:39:35 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2022-10-01 23:58:52 +0200
commit79efd5df1e47421247b1896de46a3d0f6dd82622 (patch)
treea97963171d1e1bd4827f0a6b7e926fb7166cf5d4 /Source/Core/Common/WorkQueueThread.h
parentc196c47e8119de714124d0720f0aead7d9b3cca6 (diff)
Common/WorkQueueThread: Make Shutdown() public, so users can wait for all currently queued tasks to finish when shutting down the thread.
Diffstat (limited to 'Source/Core/Common/WorkQueueThread.h')
-rw-r--r--Source/Core/Common/WorkQueueThread.h2
1 files changed, 1 insertions, 1 deletions
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");