Barrier.RemoveParticipants(Int32) 메서드

정의

참가자가 감소함을 Barrier에 알립니다.

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

매개 변수

participantCount
Int32

장벽에서 제거할 추가 참가자의 수입니다.

예외

현재 인스턴스가 이미 삭제된 경우

총 참가자 수가 지정된 participantCount보다 작습니다.

해당 장애물에 이미 0 참가자가 있습니다.

또는

이 메서드는 사후 단계 작업 내에서 호출되었습니다.

또는

현재 참가자 수가 지정된 participantCount보다 작습니다.

설명

참가자가 이미 장벽을 기다리고 있는 경우 participantCount , 이 제거는 장벽을 충족하고, 사후 단계 작업이 실행되며, 제거되는 모든 참가자가 장벽에 성공적으로 도달한 것처럼 모든 참가자가 깨어났습니다.

적용 대상

추가 정보