Boost logo

Boost :

From: Chris Thomasson (cristom_at_[hidden])
Date: 2006-11-27 22:54:11


"Eugene Prystupa" <prystupa_at_[hidden]> wrote in message
news:ekg9i5$826$1_at_sea.gmane.org...
> 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

Well, you can do the condition variable stuff with an eventcount w/
waiters-bit. You can steal another bit, for the mutex. Unfortunately for
you, C/C++ is a means to actually develop the synchronization primitive from
pretty much scratch. C/C++ is low-level enough to interface nicely with
Assembly Language. You are going to probably have to handcraft the sync, or
hire a consultant that specializes in advanced multi-threading techniques.

Can't you look at the source to a .Net implementation and see how they use
C++ to implement their particular algorithm?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk