www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/04/16:54:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Subject: RE: pthread_mutex_trylock does not lock
From: Robert Collins <rbcollins AT cygwin DOT com>
To: Christophe Galerne <christophegalerne AT earthlink DOT net>
Cc: cygwin <cygwin AT cygwin DOT com>
In-Reply-To: <3DEE74C3.1070208@earthlink.net>
References: <3DEE74C3 DOT 1070208 AT earthlink DOT net>
Date: 05 Dec 2002 18:54:01 +1100
Message-Id: <1039074842.8812.27.camel@lifelesswks>
Mime-Version: 1.0

--=-qRGxKL7L6QJNaHgY+0lD
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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 documen=
tation
>  > > on cygwin threads say this is the same as PTHREAD_MUTEX_FAST_NP
>  >
>  > What documentation says that?
>=20
> 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


--=20
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---

--=-qRGxKL7L6QJNaHgY+0lD
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA97wYZI5+kQ8LJcoIRAhEwAJ9o19EFCle3XbvS5Y4HgJBQaK710QCfc257
1IxBnU7JWvN1Jy1eGuvVVN0=
=QQjS
-----END PGP SIGNATURE-----

--=-qRGxKL7L6QJNaHgY+0lD--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019