RtWaitHandle.WaitAny Method (RtSafeWaitHandle())

Waits for any of the elements in the specified array to receive a signal.

Namespace:  IntervalZero.MaxRT.wRTOS.RtApi.Threading
Assembly:  IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.1.0)

Syntax

Copy
public static int WaitAny(
    RtSafeWaitHandle[] waitHandles
)

Parameters

waitHandles

Type: IntervalZero.MaxRT.wRTOS.RtApi.Threading.WaitHandles.RtSafeWaitHandle
A WaitHandle array containing the objects for which the current instance will wait.

Return Value

Type: Int32
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: