[Lazarus] Class TThread in linux;

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Nov 25 16:04:14 CET 2011


On Fri, 25 Nov 2011 12:21:24 -0200
William Oliveira Ferreira <bdexterholland at gmail.com> wrote:

> Thanks for the awnser, Sven, but, my question is why not only use
> {$ifdef unix}
> cthreads
> {$endif}
> and i didnĀ“t understand yet...

If you want to use threads in your program, then the above is the
correct way.

The cthreads define is only for packages. When your project uses a
package, that uses multiple threads, it enables multithreading for the
project by defining -dcthreads.


Mattias




More information about the Lazarus mailing list