diff --git a/src/threading/TaskScheduler.cpp b/src/threading/TaskScheduler.cpp index 6c04d4ff7..60fa0bea6 100644 --- a/src/threading/TaskScheduler.cpp +++ b/src/threading/TaskScheduler.cpp @@ -254,10 +254,9 @@ namespace threading { } // Wait for something to happen! - // We cannot have a condition on this lock as the check would be this doing this loop again to see if there - // are any tasks we can execute (checking all the groups) - // Putting a condition on this lock is normally used to stop spurious wakeups of which the cost would be - // equal to the check. + // We don't have a condition on this lock as the check would be this doing this loop again to see if there + // are any tasks we can execute (checking all the groups) so therefore we already did the entry predicate. + // Putting a condition on this would stop spurious wakeups of which the cost would be equal to running again condition.wait(lock); // NOSONAR }