Barrier Konstruktory

Definice

Inicializuje novou instanci Barrier třídy.

Přetížení

Name Description
Barrier(Int32)

Inicializuje novou instanci Barrier třídy.

Barrier(Int32, Action<Barrier>)

Inicializuje novou instanci Barrier třídy.

Barrier(Int32)

Zdroj:
Barrier.cs
Zdroj:
Barrier.cs
Zdroj:
Barrier.cs
Zdroj:
Barrier.cs
Zdroj:
Barrier.cs

Inicializuje novou instanci Barrier třídy.

public:
 Barrier(int participantCount);
public Barrier(int participantCount);
new System.Threading.Barrier : int -> System.Threading.Barrier
Public Sub New (participantCount As Integer)

Parametry

participantCount
Int32

Počet zúčastněných vláken.

Výjimky

participantCount je menší než 0 nebo větší než 32 767.

Viz také

Platí pro

Barrier(Int32, Action<Barrier>)

Zdroj:
Barrier.cs
Zdroj:
Barrier.cs
Zdroj:
Barrier.cs
Zdroj:
Barrier.cs
Zdroj:
Barrier.cs

Inicializuje novou instanci Barrier třídy.

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))

Parametry

participantCount
Int32

Počet zúčastněných vláken.

postPhaseAction
Action<Barrier>

Po Action<T> každé fázi se má provést. Null (v Visual Basic) může být předána hodnota null, která značí, že se neprovádí žádná akce.

Výjimky

participantCount je menší než 0 nebo větší než 32 767.

Poznámky

Delegát postPhaseAction se spustí poté, co všichni účastníci přišli na bariéru v jedné fázi. Účastníci nebudou vydáni do další fáze, dokud delegát postPhaseAction nedokončí provádění.

Viz také

Platí pro