System.Threading.Barrier: Method Members

The methods of System.Threading.Barrier are listed below. For a list of all members, see the Barrier Members list.

See Also: Inherited members from System.Object

Public Methods

AddParticipant() : long

Notifies the System.Threading.Barrier that there will be an additional participant.

AddParticipants(int) : long

Notifies the System.Threading.Barrier that there will be additional participants.

Dispose()

Releases all resources used by the current instance of the System.Threading.Barrier class.

RemoveParticipant()

Notifies the System.Threading.Barrier that there will be one less participant.

RemoveParticipants(int)

Notifies the System.Threading.Barrier that there will be fewer participants.

SignalAndWait()

Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well.

SignalAndWait(int) : bool

Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well, using a 32-bit signed integer to measure the timeout.

SignalAndWait(CancellationToken)

Signals that a participant has reached the barrier and waits for all other participants to reach the barrier, while observing a cancellation token.

SignalAndWait(TimeSpan) : bool

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.

SignalAndWait(int, CancellationToken) : bool

Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well, using a 32-bit signed integer to measure the timeout, while observing a cancellation token.

SignalAndWait(TimeSpan, CancellationToken) : bool

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.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Threading.Barrier, and optionally releases the managed resources.