RTWaitHandle WaitAny Method ( RTSafeWaitHandle , Int32, Boolean) IntervalZero RTX Managed Code
Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed integer to measure the time interval.

Namespace:  RTX.Threading
Assembly:  IntervalZero.RTX (in IntervalZero.RTX.dll) Version: 12.0.0.0 (12.0.0.0)

Syntax

public static int WaitAny(
	RTSafeWaitHandle[] waitHandles,
	int millisecondsTimeout,
	bool exitContext
)

Parameters

waitHandles
Type: RTX.Threading.WaitHandles RTSafeWaitHandle
A WaitHandle array containing the objects for which the current instance will wait.
millisecondsTimeout
Type: OnlineSystem Int32
The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely
exitContext
Type: OnlineSystem Boolean
Unsupported in the Compact Framework. This parameter is for compatibility and is ignored.

Return Value

Type: OnlineInt32
The array index of the object that satisfied the wait, or WaitTimeout if no object satisfied the wait and a time interval equivalent to timeout has passed.
See Also