[fpc-devel] Threading support and C library under Linux/Unix

Marco van de Voort marcov at stack.nl
Tue Jun 22 15:46:02 CEST 2010


In our previous episode, Henry Vermaak said:
> >
> > Why would you need a native one in the first place?
> 
> I was under the impression that fpc uses libc to implement threads on
> unix.  Is this not the case?

Yes. And 99% of the thread using programs also use other C libs that use
libc anyway (*)

As Jonas explained, two thread systems in one binary is almost certain not
workable. 

(*) the only exception that I'm aware of is the CHM compressor, and because
of that fpdoc (but also e.g.  chmcmd).  It could use thread support to
increase compression speed, but is purely Pascal.  So currently it doesn't
use threads to make distribution easier.

But does it really warrant making a complex lib for that? And for which
archs and OSes do you want to do this?



More information about the fpc-devel mailing list