Always queue a method for execution in the main thread.
Source position: classesh.inc line 2312
protected procedure TThread.ForceQueue( |
aMethod: TThreadMethod |
); |
aThread: TThread; |
aMethod: TThreadMethod |
); |
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.
|
Synchronizes the thread by executing the method in the main thread. |
|
|
Remove methods scheduled for execution from queue. |
|
|
Queue a method for execution in the main thread. |