System.Threading.Barrier.RemoveParticipants Method

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

Syntax

public void RemoveParticipants (int participantCount)

Parameters

participantCount
The number of additional participants to remove from the barrier.

Remarks

If participantCount participants are already waiting on the barrier, this removal fulfills the barrier, the post phase action is executed and all of the participants are woken as if this participant being removed had successfully reached the barrier.

Requirements

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