Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`CON54-CPP`: Consider `wait`/`wait_until`/`wait_for`s `stop_waiting` parameter in lieu of loop

Open
#430 1 comment 0 reactions 1 assignee View on GitHub

@nicolaswill is already working on this.

Since Jul 12, 2024.

Assessment

This issue has not been assessed yet.

Description

Difficulty-Low false positive/false negative Impact-Low Stardard-CERT-C++ user-report
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.

Dominant language
CodeQL
Stars
227
Forks
82
Avg merge
6d 7h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-coding-standards

All issues in github/codeql-coding-standards

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.