codeql-coding-standards
codeql-coding-standards copied to clipboard
`CON54-CPP`: Consider `wait`/`wait_until`/`wait_for`s `stop_waiting` parameter in lieu of loop
Affected rules
CON54-CPP
Description
The std::condition_variable::wait, std::condition_variable::wait_until and std::condition_variable::wait_for functions include an overload with a stop_waiting predicate parameter. If this overload is used, spurious waking is avoided and therefore this issue should not be reported.
Issue body updated to also consider wait and wait_for in addition to wait_until.