Boost logo

Boost :

From: Eugene Prystupa (prystupa_at_[hidden])
Date: 2006-11-28 20:19:02


Thanks, Chris. In fact I already "hand-crafted" a primitive to do that, I
was just hoping there is a publicly tested solution available.

- Eugene

"Chris Thomasson" <cristom_at_[hidden]> wrote in message
news:ekgb31$e1n$1_at_sea.gmane.org...
> "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?
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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