[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TThread.RemoveQueuedEvents

Remove methods scheduled for execution from queue

Declaration

Source position: classesh.inc line 1808

public class procedure TThread.RemoveQueuedEvents(

  aThread: TThread;

  aMethod: TThreadMethod

);

class procedure TThread.RemoveQueuedEvents(

  aMethod: TThreadMethod

);

class procedure TThread.RemoveQueuedEvents(

  aThread: TThread

);

Description

RemoveQueuedEvents removes methods from the list of methods waiting for execution in the main thread. If only aThread is specified, all methods scheduled for execution by that thread are removed. If only aMethod is specified, then all calls to that method are removed, regardless of the thread. If both arguments are specified, then all calls to the given method by the given thread are removed.

See also

TThread.Synchronize

  

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

TThread.Queue

  

Queue a method for execution in the main thread


Documentation generated on: Jun 22 2020