This is the mail archive of the
mailing list for the Cygwin project.
RE: pthread_mutex_trylock does not lock
- From: Christophe Galerne <christophegalerne at earthlink dot net>
- To: cygwin <cygwin at cygwin dot com>
- Date: Wed, 04 Dec 2002 13:33:55 -0800
- Subject: RE: pthread_mutex_trylock does not lock
Robert Collins wrote:
> On Tue, 2002-12-03 at 23:06, Chris Knight wrote:
> > Hello Rob,
> > I have changed the code, see below. I now set the type to
> > PTHREAD_MUTEX_NORMAL but that also does not block. The only documentation
> > on cygwin threads say this is the same as PTHREAD_MUTEX_FAST_NP
> What documentation says that?
seems to explain that a PT_MUTEX_NORMAL mutex should behave the way Chris
If this doc is out-of-date, could you give a pointer to a more accurate
> We don't support NONRECURSIVE mutex's. I don't know what you mean by
> NORECURSIVE threads.
Then maybe one should add a comment above
pthread.h(55): #define PTHREAD_MUTEX_NORMAL 2
that this option is not supported.
pthread.h(57): #define PTHREAD_MUTEX_INITIALIZER (void *)20
a comment that says that a default MUTEX will be recursive
might avoid some surprise. =:-D
PS: Could you cc me as I am not on the list? Thanks.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html