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. [Edit]

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. [Edit]
exitContext
This parameter must be false. [Edit]

Returns

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

Exceptions

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

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. [Edit]

Requirements

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