Skip to content

CON54-CPP: Consider wait/wait_until/wait_fors stop_waiting parameter in lieu of loop #430

Open
@lcartey

Description

@lcartey

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.

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-LowStardard-CERT-C++false positive/false negativeAn issue related to observed false positives or false negatives.user-reportIssue reported by an end user of CodeQL Coding Standards

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions