Op Tue, 17 Oct 2006, schreef Micha Nelissen:

> Daniël Mantione wrote:
> > no kernel call is necessary. If the lock starts spinning, on uniprocessor
> > it won't be released until the kernel schedules the other thread. This
> > exactly the idea behind kernel futexes, if the lock is not held, no
> > kernel 
> 
> Aren't futexes 2.6+ only ?

They are. For backward compatibility you use the semctl API. This is not 
problematic, pthreads uses semctl for <=2.4 as well.

Daniël
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to