System.Threading.Barrier.SignalAndWait Method

Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well, using a TimeSpan object to measure the time interval, while observing a cancellation token.

Syntax

public bool SignalAndWait (TimeSpan timeout, CancellationToken cancellationToken)

Parameters

timeout
A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely.
cancellationToken
The System.Threading.CancellationToken to observe.

Returns

true if all other participants reached the barrier; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Threading
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0