This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.3.12: pthread mutex - second lock won't block.


----- 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]