Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TThread.ForceQueue

Always queue a method for execution in the main thread.

Declaration

Source position: classesh.inc line 2311

protected procedure TThread.ForceQueue(

  aMethod: TThreadMethod

);

class procedure TThread.ForceQueue(

  aThread: TThread;

  aMethod: TThreadMethod

);

Description

ForceQueue schedules a method aMethod for execution in the main thread, just like TThread.Queue. In difference with TThread.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

TThread.Synchronize

  

Synchronizes the thread by executing the method in the main thread.

TThread.RemoveQueuedEvents

  

Remove methods scheduled for execution from queue.

TThread.Queue

  

Queue a method for execution in the main thread.


Documentation generated on: Nov 23 2024