This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: 1.3.12: pthread mutex - second lock won't block.
- From: "Robert Collins" <robert dot collins at syncretize dot net>
- To: "Clemens Fuchslocher" <clfuit00 at fht-esslingen dot de>,<cygwin at cygwin dot com>
- Date: Sun, 7 Jul 2002 10:14:12 +1000
- Subject: Re: 1.3.12: pthread mutex - second lock won't block.
- References: <57370207062339390-100000@foo>
----- Original Message -----
From: "Clemens Fuchslocher" <clfuit00@fht-esslingen.de>
To: <cygwin@cygwin.com>
Sent: Sunday, July 07, 2002 8:40 AM
Subject: 1.3.12: pthread mutex - second lock won't block.
> hi,
>
> If I lock a fast mutex twice, it normaly should block forever.
Huh? You need to read the pthread spec at least once.
Cygwin's default pthread mutex type is RECURSIVE. And the pthread mutex
attribute calls will reject any 'normal' or 'errorchecking' mutex type
requests. It's fully in the pthread spec is this regard.
If your application is assuming that the default mutex type is non
recursive, it is a bug in your code.
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/