System.Types.TMultiWaitEvent.WaitForAny

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

class function WaitForAny(const Events: array of TMultiWaitEvent; Timeout: Cardinal = INFINITE): TWaitResult; overload; static;
class function WaitForAny(const Events: array of TMultiWaitEvent; out Index: Integer; Timeout: Cardinal = INFINITE): TWaitResult; overload; static;
class function WaitForAny(const Events: array of TMultiWaitEvent; out Event: TMultiWaitEvent; Timeout: Cardinal = INFINITE): TWaitResult; overload; static;

C++

static TWaitResult __fastcall WaitForAny(TMultiWaitEvent* const *Events, const System::NativeInt Events_High, unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
static TWaitResult __fastcall WaitForAny(TMultiWaitEvent* const *Events, const System::NativeInt Events_High, /* out */ int &Index, unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
static TWaitResult __fastcall WaitForAny(TMultiWaitEvent* const *Events, const System::NativeInt Events_High, /* out */ TMultiWaitEvent* &Event, unsigned Timeout = (unsigned)(0xffffffff))/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.Types.pas
System.Types.hpp
System.Types TMultiWaitEvent


説明

指定された Events 配列内の少なくとも 1 つのイベントシグナルあり状態になるか、タイムアウトになるまで待機します。

Timeout パラメータは任意です。 Timeout のデフォルト値は INFINITE です。

任意で、次のパラメータのいずれかを指定することができます:

  • Index: 関数を戻させる、指定 Events 配列内の TMultiWaitEvent のインデックス。
  • Event: 関数を戻させる、指定 Events 配列内の TMultiWaitEvent インスタンス。

関連項目