WorkQueueThread: Fix WaitForCompletion

This commit is contained in:
Robin Kertels 2023-03-20 16:31:40 +01:00
parent 9186050daa
commit 9d422d14d5
No known key found for this signature in database
GPG Key ID: 3824904F14D40757
1 changed files with 1 additions and 1 deletions

View File

@ -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