System.Types.TMultiWaitEvent.WaitForAny

From RAD Studio API Documentation
Jump to: navigation, search

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

Properties

Type Visibility Source Unit Parent
function public
System.Types.pas
System.Types.hpp
System.Types TMultiWaitEvent

Description

Waits until at least one of the events in the specified Events array is signaled or until timeout is reached.

The Timeout parameter is optional. The default value of Timeout is INFINITE.

You can optionally specify one of the following parameters:

  • Index: The index of the TMultiWaitEvent in the specified Events array that causes the function to return.
  • Event: The TMultiWaitEvent instance in the specified Events array that causes the function to return.

See Also