Boost logo

Boost :

From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2005-09-17 04:07:12


Hi.
I'm definitely no expert on this, but there's something that bothers me
about conditions in general and this implementation in particular. The
Win32 CriticalSection used is a *recursive* mutex. Meaning that the
LeaveCriticalSection() used inside pthread_cond_wait() doesn't guaranty
the the mutex is actually unlocked. Insuring this requires counting the
number of times the mutex was locked before entering
pthread_cond_wait(). Is this a problem? Is there any reference to the
difference between a condition with recursive mutex to a condition with
non-recursive mutex?

Just some thoughts I wanted to share...
Yuval


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