diff options
| author | Robin Kertels <robin.kertels@gmail.com> | 2023-03-20 16:31:40 +0100 |
|---|---|---|
| committer | Robin Kertels <robin.kertels@gmail.com> | 2023-03-20 16:31:40 +0100 |
| commit | 9d422d14d501df6ca3876ac500056dad923f4537 (patch) | |
| tree | 1167dfaa4925a8484d3c6824a605a5b906330509 /Source/Core/Common/WorkQueueThread.h | |
| parent | 9186050daaa3cd85eabee5c5fe677f39b2a5cbe5 (diff) | |
WorkQueueThread: Fix WaitForCompletion
Diffstat (limited to 'Source/Core/Common/WorkQueueThread.h')
| -rw-r--r-- | Source/Core/Common/WorkQueueThread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/WorkQueueThread.h b/Source/Core/Common/WorkQueueThread.h index be3c3198d4..be723299b2 100644 --- a/Source/Core/Common/WorkQueueThread.h +++ b/Source/Core/Common/WorkQueueThread.h @@ -124,7 +124,7 @@ public: if (m_idle && !m_cancelling.load()) return; - m_wait_cond_var.wait(lg, [&] { return m_idle && m_cancelling.load(); }); + m_wait_cond_var.wait(lg, [&] { return m_idle && !m_cancelling; }); } // If the worker polls IsCanceling(), it can abort its work when Cancelling |
