On 23 June 2010 14:13, Daniël Mantione <[email protected]> wrote:
>
>
> Op Wed, 23 Jun 2010, schreef Henry Vermaak:
>
>> A futex syscall doesn't know anything about threads, it's for locking.
>> Perhaps I'm misunderstanding you?
>
> I have should have written "futex" instead of "threads". With a Futex, you
> only call the Futex syscall, if the Futex is locked. You still have to test
> wether the Futex is locked in userspace, and you that with the interlocked
> assembler instructions. This assembler implementation must be implemented
> for each architecture (though abstractions can probably be used, we already
> have many interlockedxxxxx procedures).

Ah, I see.  I've seen the interlocked procedures in the rtl, we seem
to have them for quite a couple arches (at least all the ones that
support linux).

Henry
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to