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:
parent
c196c47e81
commit
79efd5df1e
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue