System.Types.TMultiWaitEvent.WaitForAny
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 int Events_High, unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
static TWaitResult __fastcall WaitForAny(TMultiWaitEvent* const *Events, const int Events_High, /* out */ int &Index, unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
static TWaitResult __fastcall WaitForAny(TMultiWaitEvent* const *Events, const int 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 インスタンス。