mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01: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:
parent
c196c47e81
commit
79efd5df1e
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user