Mono Class Library: Mono.Unix.UnixSignal Overview | Members

Mono.Unix.UnixSignal.WaitOne Method

Blocks the current thread until the curent instance has a non-zero UnixSignal.Count or the timeout expires.

public override bool WaitOne (int millisecondsTimeout, bool exitContext)

Parameters

millisecondsTimeout
A int containing the maximum number of milliseconds the current thread should block before returning.
exitContext
This parameter must be false.

Returns

Returns true when the current instance receives a signal, otherwise false is returned if the timeout is exceeded.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionmillisecondsTimeout is less than -1.
InvalidOperationExceptionexitContext is true.
ObjectDisposedException The current instance has already been disposed.

Remarks

The caller of this method blocks for up to millisecondsTimeout for the UnixSignal.Signum signal to be received by the current process and the UnixSignal.Count property to become non-zero.

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0