[Lazarus] nonlcl basic issue: is codetools LCL dependent?
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Jun 27 15:07:03 CEST 2014
On Fri, 27 Jun 2014 12:24:02 +0200
Michael Schnell <mschnell at lumino.de> wrote:
>[...]
> - we can't create full compatibility to how Application.QueuAsnyCall
> works with other Widget Types, as TThread.Queue, when called from the
> main Thread, does not queue the call but preforms the call right away.
>
> Unfortunately this is even true if you do TThread.Queue with a fake self
> pointer, as it internally checks using GetCurrentThread.
>
> Hence we would need a modification to the RTL for full compatibility.
... or simply do it without TThread.Queue, which is not complicated,
is LCL compatible and works with fpc 2.6.2+.
Only argument: You fear it is more overhead. The only overhead I see is
an extra critical section, which is negligible when your granularity
is milliseconds.
Mattias
More information about the Lazarus
mailing list