[fpc-pascal] TThread.Queue vs TThread.Synchronize

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Feb 23 18:42:46 CET 2015


On 2015-02-23 10:52, Michael Schnell wrote:
> TThread.Queue works very similar to Application.QueueAsyncCall in the LCL

I don't use LCL, so I'm not familiar with all its features.


> Obviously TThread.Queue does not hamper the firing thread, while 
> TThread.Synchronize stalls it for an undefined amount of time.

Ah ok, so Synchronize() is a blocking call and Queue() isn't. That would
explain why some prefer Queue().


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/



More information about the fpc-pascal mailing list