[Lazarus] Working with threads and GUI
ik
idokan at gmail.com
Thu Oct 18 11:59:43 CEST 2012
On Thu, Oct 18, 2012 at 9:13 AM, Michael Schnell <mschnell at lumino.de> wrote:
> The LCL provides the function QueuAsyncCall() to have a thread execute a
> code snippet in the main thread and thus allow for GUI work.
>
> Other than TThread.Synchronize, this does not stall the thread until the
> main thread activity is finished (which can take forever), but the procedure
> only gets queued, the thread just continues and the queued procedure gets
> executed when the main thread has time to run it.
Thanks, I didn't know about it, and it might save me a thread.
>
> -Michael
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list