pthread_mutex_trylock does not lock
Robert Collins
rbcollins@cygwin.com
Wed Dec 4 14:11:00 GMT 2002
On Thu, 2002-12-05 at 08:33, Christophe Galerne wrote:
> 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?
>
> This
> www.opengroup.org/onlinepubs/7908799/xsh/pthread_mutexattr_settype.html
> seems to explain that a PT_MUTEX_NORMAL mutex should behave the way Chris
> expect.
Oh, and more specifically, what documentation says that 'cygwin threads
using PTHREAD_MUTEX_NORMAL are the same as _PTHREAD_MUTEX_FAST_NP'.
I never said that PTHREAD_MUTEX_NORMAL does not block, I was challenging
the apparent 'cygwin threads' documentation.
Rob
--
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin/attachments/20021204/b40a3126/attachment.sig>
More information about the Cygwin
mailing list