RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TThread.RemoveQueuedEvents Method

Remove queued method calls.

Pascal
class procedure RemoveQueuedEvents(AThread: TThread; AMethod: TThreadMethod);
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!