mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -60,7 +60,6 @@ public:
|
|||||||
|
|
||||||
bool IsCancelled() const { return m_cancelled.IsSet(); }
|
bool IsCancelled() const { return m_cancelled.IsSet(); }
|
||||||
|
|
||||||
private:
|
|
||||||
void Shutdown()
|
void Shutdown()
|
||||||
{
|
{
|
||||||
if (m_thread.joinable())
|
if (m_thread.joinable())
|
||||||
@ -71,6 +70,7 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
void ThreadLoop()
|
void ThreadLoop()
|
||||||
{
|
{
|
||||||
Common::SetCurrentThreadName("WorkQueueThread");
|
Common::SetCurrentThreadName("WorkQueueThread");
|
||||||
|
Reference in New Issue
Block a user