Barrier Constructor (Int32, Action<Barrier^>^)
.NET Framework (current version)
Initializes a new instance of the Barrier class.
Assembly: System (in System.dll)
Parameters
- participantCount
-
Type:
System::Int32
The number of participating threads.
- postPhaseAction
-
Type:
System::Action<Barrier^>^
The Action<T> to be executed after each phase. null (Nothing in Visual Basic) may be passed to indicate no action is taken.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | participantCount is less than 0 or greater than 32,767. |
The postPhaseAction delegate will be executed after all participants have arrived at the barrier in one phase. The participants will not be released to the next phase until the postPhaseAction delegate has completed execution.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Show: