メインメニューを開く

RAD Studio API Documentation β

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 */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TThread

説明

キューに入っているメソッド呼び出しを削除します。

Queue メソッドは、メイン スレッドでメソッドを実行させる要求をキューに入れるために、スレッドによって使用されます。大抵、これはメイン スレッドの安全が重要な場合に実行されます。

RemoveQueuedEvents は、キューに入っているメソッド呼び出しを削除します。この操作は、次の 2 つのいずれかの方法で実行されます。AThread が指定されている場合は、このスレッドによってキューに入れられたすべてのメソッド呼び出しが削除されます。AThread が nil の場合は、呼び出しをキューに入れたスレッドに関係なく、AMethod で指定されたメソッドへのすべての呼び出しが削除されます。

関連項目