System.Threading.Barrier.AddParticipants Method

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

Syntax

public long AddParticipants (int participantCount)

Parameters

participantCount
The number of additional participants to add to the barrier.

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