ConcurrentExclusiveSchedulerPair Constructor (TaskScheduler^, Int32, Int32)

.NET Framework (current version)
 

Initializes a new instance of the ConcurrentExclusiveSchedulerPair class that targets the specified scheduler with a maximum concurrency level and a maximum number of scheduled tasks that may be processed as a unit.

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

public:
ConcurrentExclusiveSchedulerPair(
	TaskScheduler^ taskScheduler,
	int maxConcurrencyLevel,
	int maxItemsPerTask
)

Parameters

taskScheduler
Type: System.Threading.Tasks::TaskScheduler^

The target scheduler on which this pair should execute.

maxConcurrencyLevel
Type: System::Int32

The maximum number of tasks to run concurrently.

maxItemsPerTask
Type: System::Int32

The maximum number of tasks to process for each underlying scheduled task used by the pair.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: