Am 24.04.2013 11:44, schrieb Michael Schnell:
On 04/24/2013 11:32 AM, Sven Barth wrote:
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.

I see the difference but I don't see a general advantage or disadvantage of this. QueueAsnyCall might or might not do the same.

QueueAsyncCall can't do anything different, because it needs to go through either TThread.Queue or TThread.Synchronize as the queue's implementation is not directly accessible from the outside and I don't intend to change this.

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to