System.Threading.Barrier Members

The members of System.Threading.Barrier are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Threading.Barrier class.

Initializes a new instance of the System.Threading.Barrier class.

Public Properties

[read-only]
CurrentPhaseNumberlong.

Gets the number of the barrier's current phase.

[read-only]
ParticipantCountint.

Gets the total number of participants in the barrier.

[read-only]
ParticipantsRemainingint.

Gets the number of participants in the barrier that haven’t yet signaled in the current phase.

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.