![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
Provides a task scheduler that ensures a maximum concurrency level while running on top of the ThreadPool. More...
Public Member Functions | |
LimitedConcurrencyLevelTaskScheduler (int maxDegreeOfParallelism) | |
Initializes an instance of the LimitedConcurrencyLevelTaskScheduler class with the specified degree of parallelism. More... | |
Protected Member Functions | |
override sealed void | QueueTask (Task task) |
Queues a task to the scheduler. More... | |
override sealed bool | TryExecuteTaskInline (Task task, bool taskWasPreviouslyQueued) |
Attempts to execute the specified task on the current thread. More... | |
override sealed bool | TryDequeue (Task task) |
Attempts to remove a previously scheduled task from the scheduler. More... | |
override sealed IEnumerable< Task > | GetScheduledTasks () |
Gets an enumerable of the tasks currently scheduled on this scheduler. More... | |
Properties | |
override sealed int | MaximumConcurrencyLevel [get] |
Gets the maximum concurrency level supported by this scheduler. More... | |
Provides a task scheduler that ensures a maximum concurrency level while running on top of the ThreadPool.
PushTechnology.DiffusionCore.Threading.LimitedConcurrencyLevelTaskScheduler.LimitedConcurrencyLevelTaskScheduler | ( | int | maxDegreeOfParallelism | ) |
Initializes an instance of the LimitedConcurrencyLevelTaskScheduler class with the specified degree of parallelism.
maxDegreeOfParallelism | The maximum degree of parallelism provided by this scheduler. |
|
protected |
Gets an enumerable of the tasks currently scheduled on this scheduler.
|
protected |
Queues a task to the scheduler.
task | The task to be queued. |
|
protected |
Attempts to remove a previously scheduled task from the scheduler.
task | The task to be removed. |
|
protected |
Attempts to execute the specified task on the current thread.
task | The task to be executed. |
taskWasPreviouslyQueued |
|
get |
Gets the maximum concurrency level supported by this scheduler.