This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++20 status.

### 2941. §[thread.req.timing] wording should apply to both member and namespace-level functions

Section: 33.2.4 [thread.req.timing] Status: C++20 Submitter: Jonathan Mcdougall Opened: 2017-03-07 Last modified: 2021-02-25

Priority: 0

View all other issues in [thread.req.timing].

View all issues with C++20 status.

Discussion:

In 33.2.4 [thread.req.timing], both /3 and /4 talk about "member functions whose names end in `_for`" and "`_until`", but these clauses also apply to `this_thread::sleep_for()` and `this_thread::sleep_until()`, which are namespace-level functions (30.3.2).

[2017-07 Toronto Wed Issue Prioritization]

Priority 0; Move to Ready

Proposed resolution:

This wording is relative to N4640.

1. Modify 33.2.4 [thread.req.timing] as indicated::

   > […]

   > -3- The member functions whose names end in `_for` take an argument that specifies a duration. […]

   > -4- The member functions whose names end in `_until` take an argument that specifies a time point. […]