Common/WorkQueueThread: Make Shutdown() public, so users can wait for all currently queued tasks to finish when shutting down the thread.

This commit is contained in:
Admiral H. Curtiss 2022-04-01 06:39:35 +02:00
parent c196c47e81
commit 79efd5df1e
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 1 additions and 1 deletions

View File

@ -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");