Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-04-23 08:18:19


Russell Hind wrote:
[...]
> I was wondering if there was a way to stop mutex being recursive on
> Win32?

Sure. For example, something along the lines of pthread_mutex_lock.c:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/pthreads/pthread_mutex_lock.c?rev=1.3&content-type=text/x-cvsweb-markup&cvsroot=pthreads-win32

[...]
> TryEnterCriticalSection? Why was the mutex approach used for one and
> not the other?

Forget it. Configure your boost to use the pthreads-win32 "approach"
and be done with it.

regards,
alexander.


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