[PATCH] a new pthread_cond implementation

Thomas Pfaff tpfaff@gmx.net
Thu Jan 23 12:32:00 GMT 2003



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



More information about the Cygwin-patches mailing list