TThread.ForceQueue¶
Always queue a method for execution in the main thread.
Declaration¶
Source position: classesh.inc line 2469
protected
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 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¶
| Name | Description |
|---|---|
| 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. |