This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] a new pthread_cond implementation
- From: Thomas Pfaff <tpfaff at gmx dot net>
- To: Robert Collins <rbcollins at cygwin dot com>
- Cc: cygwin-patches at cygwin dot com
- Date: Thu, 23 Jan 2003 13:32:30 +0100 (Westeuropäische Normalzeit)
- Subject: Re: [PATCH] a new pthread_cond implementation
On Thu, 23 Jan 2003, Robert Collins wrote:
> On Thu, 2003-01-23 at 23:21, Thomas Pfaff wrote:
>
>
> > 4. The spec requires that the mutex which is used with the condition
> > shall be locked by the calling thread. The current code does not check
> > this and will additionally create the mutex if it initialized with
> > PTHREAD_MUTEX_INITIALIZER. The opengroup spec suggests EPERM under that
> > condition.
>
> The spec only requires this for pthread_cond_wait, not for all
> pthread_cond_ calls. I hadn't noticed the EPERM suggestion.
>
I am sorry about being unclear. I meant this only for cond_[timed]wait.
All other calls do not contain a mutex parameter.
Thomas