[Lazarus] FPC 2.6.2 + Thread.Queue?

Sven Barth pascaldragon at googlemail.com
Wed Apr 24 11:32:37 CEST 2013


Am 24.04.2013 11:25, schrieb Michael Schnell:
> On 04/24/2013 11:21 AM, Michael Van Canneyt wrote:
>>
>> Somewhere the main program loop must call checksynchronize, that is all.
>>
>
> If that (i.e. doing a pseudo-queue in the user-code) is true for all 
> platforms (which would mean that an EventQueue does exist and just is 
> not polled automatically), I don't see why QueueAsyncCall() can't be 
> handled in the same way.
Please note that if you use TThread.Queue or TThread.Synchronize from 
within the main thread then your code won't be queued, but executed 
immediately. It is only designed for enqueing code execution for threads 
that are not the main thread.

Regards,
Sven




More information about the Lazarus mailing list