Barrier Methods
Collapse the table of content
Expand the table of content

Barrier Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Barrier type exposes the following members.

  NameDescription
Public method AddParticipant Notifies the Barrier that there will be an additional participant.
Public method AddParticipants Notifies the Barrier that there will be additional participants.
Public method Dispose() Releases all resources used by the current instance of the Barrier class.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the Barrier, and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveParticipant Notifies the Barrier that there will be one less participant.
Public method RemoveParticipants Notifies the Barrier that there will be fewer participants.
Public method SignalAndWait() Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well.
Public method 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 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 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 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 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 ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Show:
© 2017 Microsoft