
28 Nov
2006
28 Nov
'06
12:32 p.m.
Eugene Prystupa wrote:
I'm trying to find a way to atomically pulse a condition variable and acquire a mutex, something I get used to in the .Net world. It doesn't seem that this operation exists in boost/thread. Anyone has done this with boost? Thanks, Eugene
Why do you want to atomically pulse a condvar and acquire a mutex? What do you mean by pulse, and what do you have in mind when you say "atomically" in this context? If you acquire the mutex first, then notify/broadcast, how could your threads detect the non-atomicity of these two actions, and why are they able to?