Barrier Methods

.NET Framework 4.6 and 4.5

The Barrier type exposes the following members.

  Name Description
Public method Supported by Portable Class Library AddParticipant Notifies the Barrier that there will be an additional participant.
Public method Supported by Portable Class Library AddParticipants Notifies the Barrier that there will be additional participants.
Public method Supported by Portable Class Library Dispose() Releases all resources used by the current instance of the Barrier class.
Protected method Supported by Portable Class Library Dispose(Boolean) Releases the unmanaged resources used by the Barrier, and optionally releases the managed resources.
Public method Supported by Portable Class Library Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Supported by Portable Class Library Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by Portable Class Library GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method Supported by Portable Class Library GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by Portable Class Library MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by Portable Class Library RemoveParticipant Notifies the Barrier that there will be one less participant.
Public method Supported by Portable Class Library RemoveParticipants Notifies the Barrier that there will be fewer participants.
Public method Supported by Portable Class Library SignalAndWait() Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well.
Public method Supported by Portable Class Library 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.
Public method Supported by Portable Class Library SignalAndWait(Int32) 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.
Public method Supported by Portable Class Library SignalAndWait(TimeSpan) 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.
Public method Supported by Portable Class Library SignalAndWait(Int32, CancellationToken) 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.
Public method Supported by Portable Class Library SignalAndWait(TimeSpan, CancellationToken) 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.
Public method Supported by Portable Class Library ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft