Barrier.RemoveParticipants(Int32) Méthode

Définition

Signale à Barrier qu'il y aura moins de participants.

public:
 void RemoveParticipants(int participantCount);
public void RemoveParticipants (int participantCount);
member this.RemoveParticipants : int -> unit
Public Sub RemoveParticipants (participantCount As Integer)

Paramètres

participantCount
Int32

Nombre de participants supplémentaires à supprimer du cloisonnement.

Exceptions

L’instance actuelle a déjà été supprimée.

Le nombre total de participants est inférieur au participantCount spécifié

La barrière a déjà 0 participant.

  • ou -

La méthode a été appelée à partir d'une action post-phase.

  • ou -

Le nombre de participants actuel est inférieur au nombre de participants spécifié.

Remarques

Si participantCount les participants attendent déjà la barrière, cette suppression répond à la barrière, l’action post-phase est exécutée et tous les participants sont réveillés comme si ce participant a réussi à atteindre la barrière.

S’applique à

Voir aussi