
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@comcast.net> wrote in message news:ekgb31$e1n$1@sea.gmane.org...
"Eugene Prystupa" <prystupa@sqlapi.com> wrote in message news:ekg9i5$826$1@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