RAD Studio VCL Reference
TThread.RemoveQueuedEvents Method

Remove queued method calls.

class procedure RemoveQueuedEvents(AThread: TThread; AMethod: TThreadMethod);
__fastcall RemoveQueuedEvents(TThread AThread, TThreadMethod AMethod);

The Queue method is used by a thread to queue a request for the main thread to execute a method. This is mostly done where the safety of the main thread is important.  

RemoveQueuedEvents removes queued method calls. The operation proceeds in one of two ways. If AThread is specified, then all method calls queued by this thread are removed. If AThread is nil, then all calls to the specified AMethod method are removed, regardless of the thread that queued the call. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!