$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-11-28 07:32:55
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?