[Lazarus] Class TThread in linux;

William Oliveira Ferreira bdexterholland at gmail.com
Fri Nov 25 15:21:24 CET 2011


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


________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informação


2011/11/25 Sven Barth <pascaldragon at googlemail.com>

> Am 25.11.2011 11:17, schrieb William Oliveira Ferreira:
>
>  Why should set $define usecthreads? only $ifdef linux doesn´t solve the
>> issue?
>>
>
> The default projects of Lazarus contain the following code:
>
> uses
>  {$ifdef unix}{$ifdef usecthreads}
>  cthreads,
>  {$endif}{$endif}
>  ...
>
> The "cthreads" unit is the one that must be included for threading support
> on Unix systems. Using a linux system merely satisfies the "ifdef unix"
> condition, but you need to define "usecthreads" as well or remove the check
> completely (you should leave the check for Unix though as the "cthreads"
> unit is not available for e.g. Windows).
>
> Regards,
> Sven
>
>
>
> --
> ______________________________**_________________
> Lazarus mailing list
> Lazarus at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111125/70224ccf/attachment-0003.html>


More information about the Lazarus mailing list