On 08/24/2011 12:23 PM, Marco van de Voort wrote:

QueueAsync is a Lazarus call. The Delphi 2006+ call for it is .queue, but
that is still unimplemented in FPC.
In fact Delphi implements TThread.Queue. while Lazarus/FPC currently don't.

The LCL provides Application.QueueAsyncCall.

Both procedures are supposed to perform the same action. But

(1) Application.QueueAsyncCall is not a TThread class Function and thus does not need support from the RTL (thus the FPC team) and (2) Application.QueueAsyncCall is is more versatile, as it additionally to the Procedure itself and the self pointer, it also provides a parameter (pointer) to the procedure to be executed by the main thread.

-Michael

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to