Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[thread.lock.unique.locking]/19 #3617

Closed
CppOpen opened this issue Jan 9, 2020 · 1 comment · Fixed by #3619
Closed

[thread.lock.unique.locking]/19 #3617

CppOpen opened this issue Jan 9, 2020 · 1 comment · Fixed by #3619
Assignees

Comments

@CppOpen
Copy link

CppOpen commented Jan 9, 2020

Returns: The value returned by the call to try_lock_until(rel_time).
=>
Returns: The value returned by the call to try_lock_for(rel_time).

@CppOpen CppOpen changed the title thread.lock.unique.locking 19 line [thread.lock.unique.locking]/19 Jan 9, 2020
@jwakely
Copy link
Member

jwakely commented Jan 9, 2020

Wow, that's been wrong since C++11.

I think this qualifies as editorial, because the intended meaning is clear. Calling try_lock_for(rel_time) wouldn't even compile, and the Effects: say it calls try_lock_until(rel_time) which is the call that the Returns: element is trying to refer to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants