RtWaitHandle.WaitOne Method (Int32, Boolean)

Blocks the current thread until the current WaitHandle receives a signal, using 32-bit signed integer to measure the time interval and specifying whether to exit the synchronization domain before the wait.

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

Syntax

Copy
public bool WaitOne(
    int millisecondsTimeout,
    bool exitContext
)

Parameters

millisecondsTimeout

Type: System.Int32
The number of milliseconds to wait, or Threading.Timeout.Infinite (-1) to wait indefinitely.

exitContext

Type: System.Boolean
Not Supported - Just pass false.

Return Value

Type: Boolean
true if the current instance receives a signal; otherwise, false.

See Also: