On 06/22/2010 02:57 PM, Graeme Geldenhuys wrote:
>
>> Of course you can avoid using the library, do the stuff in Pascal and
>> directly access the Kernel API, but this might be dangerous in case the
>> API might be modified some time in the future
>>     
> Wouldn't the same apply to the pthreads library? From what I understand the
> currently implementation of NTPL is very good, so I doubt it will change
> any time soon.
>   
I suppose that the Kernel Thread API (NPTL, FUTEX) in fact is here to
stay, but especially _using_ the FUTEX API in a user land application is
tricky, so relying on libc (on that behalf) seems like a good idea, as
it's "pthread...()" api is easy to use.

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

Reply via email to