Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 15, 2023
1 parent dd0e06e commit 37d5730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/threading/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace threading {
// Wait for something to happen!
// 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
// Putting a condition on this would stop spurious wakeups of which the cost would be equal to the loop.
condition.wait(lock); // NOSONAR
}

Expand Down

0 comments on commit 37d5730

Please sign in to comment.