summaryrefslogtreecommitdiff
path: root/Source/Core/Common/WorkQueueThread.h
diff options
context:
space:
mode:
authorRobin Kertels <robin.kertels@gmail.com>2023-03-20 16:31:40 +0100
committerRobin Kertels <robin.kertels@gmail.com>2023-03-20 16:31:40 +0100
commit9d422d14d501df6ca3876ac500056dad923f4537 (patch)
tree1167dfaa4925a8484d3c6824a605a5b906330509 /Source/Core/Common/WorkQueueThread.h
parent9186050daaa3cd85eabee5c5fe677f39b2a5cbe5 (diff)
WorkQueueThread: Fix WaitForCompletion
Diffstat (limited to 'Source/Core/Common/WorkQueueThread.h')
-rw-r--r--Source/Core/Common/WorkQueueThread.h2
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