Hello Konstantin, I had a look at the file thread_wrappers_pthread.h. I was surprised to find a class with the name Mutex that has both a mutex and a condition variable as members. Are you aware of the monitor concept that was defined by C.A.R. Hoare ? See e.g. http://en.wikipedia.org/wiki/Monitor_(synchronization)
Furthermore, using a condition variable by itself (class CondVar) is *very* error prone and can easily introduce race conditions. A pthread condition variable should always be used in combination with a pthread mutex. Bart. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Valgrind-developers mailing list Valgrind-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-developers