Sign in Join
FPDoc Onlineexperiment

TThread.ForceQueue procedure

Member of TThreadprotectedIn unit Classes

Always queue a method for execution in the main thread.

Declaration

pascal
procedure ForceQueue(aMethod: TThreadMethod)
class procedure ForceQueue(aThread: TThread; aMethod: TThreadMethod; 
 aDelay: Integer=0); static

Description

ForceQueue schedules a method aMethod for execution in the main thread, just like Queue. In difference with Queue, if the call is made from the main thread, the function will not be executed at once, bu will actuall be put in the queue.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.