This is the mail archive of the cygwin-patches@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: [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


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