
28 Mar
2011
28 Mar
'11
11:26 p.m.
On Mar 28, 2011, at 6:34 PM, Panagiotis Foteinos wrote:
Thank you for the reply.
To clarify things in my mind: Should I pass the lock itself to cond.wait for safety/correctness, or because this way I will get the desired behavior?
To have cond.wait call unlock_shared() / lock_shared(), cond should be of type condition_variable_any, and you should pass in shared_lock