Mail Archives: cygwin/2002/12/03/07:14:37
--=-3Sn8EZ1XC1S3ZkHMkTkL
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Tue, 2002-12-03 at 23:06, Chris Knight wrote:
> Hello Rob,
>=20
> I have changed the code, see below. I now set the type to
> PTHREAD_MUTEX_NORMAL but that also does not block. The only documentatio=
n
> on cygwin threads say this is the same as PTHREAD_MUTEX_FAST_NP=20
What documentation says that?
The PTHREAD_MUTEX_FAST_NP under linux is NP -> NON PORTABLE. In other
words, expect it to break on all other platforms.
> which I know
> blocks under Linux. Linux man pages also say that this is the default mu=
tex
> type.
>=20
> Do you know the right type for NONRECURSIVE threads.
We don't support NONRECURSIVE mutex's. I don't know what you mean by
NORECURSIVE threads.
If you need a portable way to do single entrancy within a single thread
and across threads, you are best to use a semaphore, not a mutex.
Cheers,
Rob
PS I've copied the list, so the solution is in the archives.
--=-3Sn8EZ1XC1S3ZkHMkTkL
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)
iD8DBQA97KAcI5+kQ8LJcoIRAmzEAJ9HHS80CoSZyw1xyAyGl/UNpe6tBQCgkamc
FoSJKANppODu6c4tXNKULEE=
=KW66
-----END PGP SIGNATURE-----
--=-3Sn8EZ1XC1S3ZkHMkTkL--
- Raw text -