[Lazarus] FPC 2.6.2 + Thread.Queue?

Sven Barth pascaldragon at googlemail.com
Wed Apr 24 11:46:03 CEST 2013


Am 24.04.2013 11:29, schrieb Michael Schnell:
> On 04/24/2013 11:19 AM, Sven Barth wrote:
>> Both TThread.Queue and TThread.Synchronize just need calls to 
>> CheckSynchronize to be processed. Which is normally done by the 
>> widgetset event loop, but can be done manually as well (I'm using 
>> this for example in a highly threaded console application; the main 
>> thread there just calls CheckSynchronize while the rest is done in 
>> threads).
>>
> Thus I would assume that CheckSynchronize also checks the 
> QueueAsncCall() results. If not I would consider this a design glitch 
> (which supposedly easily could be corrected).
No, it does not. QueueAsyncCall is implemented/provided by the LCL not 
the RTL.

Regards,
Sven




More information about the Lazarus mailing list