System.Threading.Barrier.AddParticipant Method

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

Syntax

public long AddParticipant ()

Returns

The phase number of the barrier in which the new participants will first participate.

Remarks

If the barrier is currently executing a post phase action, this call is blocked until the post phase action completes and the barrier has moved on to the next phase.

Requirements

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