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).

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

Reply via email to