[fpc-devel] Threads and alot of crap
Vinzent Hoefler
JeLlyFish.software at gmx.net
Tue Oct 17 12:02:36 CEST 2006
On Tuesday 17 October 2006 09:46, Jonas Maebe wrote:
> On 17 okt 2006, at 11:22, Vinzent Hoefler wrote:
> >> The pthread_cond_wait() function atomically unlocks the
> >> mutex argument
> >> and waits on the cond argument.
> >>
> >> So the mutex should already be unlocked afterwards.
> >
> > If you would have read a couple of lines further you also would
> > have
> >
> > found:
> > |Before returning to the calling thread, pthread_cond_wait
> > | re-acquires mutex (as per pthread_lock_mutex).
>
> That is not on the Mac OS X man page for pthread_cond_wait. See
> http://www.hmug.org/man/3/pthread_cond_wait.php
I see.
> Not sure if this means it's not necessary in the Mac OS X (and
> possibly FreeBSD) versions, or that the Mac OS X man pages are
> incomplete.
They are most definitely incomplete.
Vinzent.
More information about the fpc-devel
mailing list