Re: [boost] [thread] condition::notify with unlocked mutex

7 Dec
2006
7 Dec
'06
8:41 p.m.
AMDG I see no reason to require that a mutex be locked for notify. If you want to have it locked then you can just do so. Wait is different; it needs to release the lock first and upon notification reacquire it and check the predicate. In Christ, Steven Watanabe

8 Dec
8 Dec
9:42 a.m.
New subject: [thread] condition::notify with unlocked mutex
Steven Watanabe wrote:
I see no reason to require that a mutex be locked for notify. If you want to have it locked then you can just do so. Wait is different; it needs to release the lock first and upon notification reacquire it and check the predicate.
All you say is technically true, but there are other design considerations which I explained in my other posts. That's not to say that you are undoubtedly wrong. Many smart people agree with you and disagree with me...
6812
Age (days ago)
6813
Last active (days ago)
1 comments
2 participants
participants (2)
-
Steven Watanabe
-
Yuval Ronen