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.guard] Does not take into account storage reuse #6588
Comments
I don't understand. Are you suggesting that There are two objects of type |
Thank you for your quick response, I'm happy to clarify
No, that'd be (more or less) impossible. Let me preface this by saying it's entirely possible I'm misreading / misunderstanding but to me [thread.lock.guard] p1 implies that it should release the mutex when its lifetime ends. But in this case the |
"I check my email frequently while I am at work" implies nothing about my email-checking frequency when I'm at home. I might not check at all, or check rarely, or check frequently. None of those would contradict the fact that I check frequently while I am at work. Similarly, "A lock_guard object maintains ownership of a lockable object throughout the lock_guard object's lifetime" says nothing about what a |
[thread.lock.guard] p1 reads
Yet in the following (ostensibly) valid program ownership is not maintained throughout the lock_guard object's lifetime:
The text was updated successfully, but these errors were encountered: