[fpc-pascal] alternatives for "cwstring" and "cthreads"

Michael Schnell mschnell at lumino.de
Mon Dec 14 10:33:40 CET 2015


On 12/11/2015 06:24 PM, Jonas Maebe wrote:
>
> Of course it's doable, and that's exactly what libpthread does (quite 
> well, quite portably and quite backward compatibly).

The Libpthread dynamic library is great in that in Linux it uses what 
the OS and the Arch provides: it automatically uses Futex, whenever 
available and with that can greatly speed up certain kind of 
applications. Here Libpthread does not simple provide OS API calls, but 
(needs to) provide user space code that is executed (called) by the 
application.

But to allow this, the application needs to dynamically link to the 
Libpthread implementation that is provided by the system (i.e 
corresponding to the Kernel version) the application is installed 
on.This might be a problem for applications that shrive to be 
self-contained.

Is there LibPThread for Windows, at all ? Does it provide something that 
might be considered Futex functionality ?

-Michael



More information about the fpc-pascal mailing list