[fpc-devel] Threads and alot of crap

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Oct 17 11:58:36 CEST 2006


On 17 okt 2006, at 11:50, Micha Nelissen wrote:

> Jonas Maebe wrote:
>> 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.
>
> It does say: The pthread_cond_signal() function unblocks one thread  
> waiting for the condition variable cond.
>
> By implication this means you need a mutex to protect against race  
> conditions.

Not necessarily, it is at least possible to implement an atomic  
linked list without requiring a mutex-style lock.

> Those manual pages are incomplete/too concise I would say.

That indeed seems to be the case.


Jonas



More information about the fpc-devel mailing list