System.Classes.TThread.RemoveQueuedEvents
Delphi
class procedure RemoveQueuedEvents(const AThread: TThread; AMethod: TThreadMethod); overload; static;
class procedure RemoveQueuedEvents(const AThread: TThread); overload; static;
class procedure RemoveQueuedEvents(AMethod: TThreadMethod); overload; static; inline;
C++
static void __fastcall RemoveQueuedEvents(TThread* const AThread, TThreadMethod AMethod)/* overload */;
static void __fastcall RemoveQueuedEvents(TThread* const AThread)/* overload */;
static void __fastcall RemoveQueuedEvents(TThreadMethod AMethod)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TThread |
Description
Remove queued method calls.
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.