Barrier 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Barrier 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| Barrier(Int32) |
Barrier 클래스의 새 인스턴스를 초기화합니다. |
| Barrier(Int32, Action<Barrier>) |
Barrier 클래스의 새 인스턴스를 초기화합니다. |
Barrier(Int32)
- Source:
- Barrier.cs
- Source:
- Barrier.cs
- Source:
- Barrier.cs
- Source:
- Barrier.cs
- Source:
- Barrier.cs
Barrier 클래스의 새 인스턴스를 초기화합니다.
public:
Barrier(int participantCount);
public Barrier(int participantCount);
new System.Threading.Barrier : int -> System.Threading.Barrier
Public Sub New (participantCount As Integer)
매개 변수
- participantCount
- Int32
참여하는 스레드 수입니다.
예외
participantCount 가 0보다 작거나 32,767보다 큰 경우
추가 정보
적용 대상
Barrier(Int32, Action<Barrier>)
- Source:
- Barrier.cs
- Source:
- Barrier.cs
- Source:
- Barrier.cs
- Source:
- Barrier.cs
- Source:
- Barrier.cs
Barrier 클래스의 새 인스턴스를 초기화합니다.
public:
Barrier(int participantCount, Action<System::Threading::Barrier ^> ^ postPhaseAction);
public Barrier(int participantCount, Action<System.Threading.Barrier> postPhaseAction);
public Barrier(int participantCount, Action<System.Threading.Barrier>? postPhaseAction);
new System.Threading.Barrier : int * Action<System.Threading.Barrier> -> System.Threading.Barrier
Public Sub New (participantCount As Integer, postPhaseAction As Action(Of Barrier))
매개 변수
- participantCount
- Int32
참여하는 스레드 수입니다.
Action<T> 각 단계 후에 실행할 대상입니다. 아무 작업도 수행되지 않음을 나타내기 위해 null(Visual Basic 없음)을 전달할 수 있습니다.
예외
participantCount 가 0보다 작거나 32,767보다 큰 경우
설명
postPhaseAction 모든 참가자가 한 단계로 장벽에 도착한 후에 대리자가 실행됩니다. 참가자는 postPhaseAction 대리자가 실행을 완료할 때까지 다음 단계로 릴리스되지 않습니다.