[fpc-devel] Threading support and C library under Linux/Unix
Sven Barth
pascaldragon at googlemail.com
Wed Jun 23 15:37:37 CEST 2010
Am 23.06.2010 15:34, schrieb Henry Vermaak:
> On 23 June 2010 14:22, Henry Vermaak<henry.vermaak at gmail.com> wrote:
>> On 23 June 2010 14:13, Daniƫl Mantione<daniel.mantione at freepascal.org> 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).
>
> Ops, except m68k.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
And that one is currently not supported by FPC (at least from 2.x on,
because no one updated the cpu units for this architecture).
Please correct me if I'm wrong.
Regards,
Sven
More information about the fpc-devel
mailing list