Skip to content

[thread.condvarany.intwait] missing wait_for() change from P1869R1 #3550

@hadrielk

Description

@hadrielk

After P1869R1 was adopted, the condition_variable_any methods wait(), wait_until() and wait_for() argument ordering was changed. This was addressed in issue #3410 and fixed in PR #3448.

However N4842 32.6.4.2 [thread.condvarany.intwait]/13 says:

Effects: Equivalent to:
return wait_until(lock, chrono::steady_clock::now() + rel_time, std::move(pred), std::move(stoken));

Since condition_variable_any::wait_until() now takes the std::stop_token as its second argument, this should instead be:

Effects: Equivalent to:
return wait_until(lock, std::move(stoken), chrono::steady_clock::now() + rel_time, std::move(pred));

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions