Method | Description | |
---|---|---|
CustomTaskScheduler ( int maxDegreeOfParallelism ) : System |
Initializes an instance of the CustomTaskScheduler class with the specified degree of parallelism.
|
Method | Description | |
---|---|---|
GetScheduledTasks ( ) : IEnumerable |
Gets an enumerable of the tasks currently scheduled on this scheduler.
|
|
QueueTask ( Task task ) : void |
Queues a task to the scheduler.
|
|
TryDequeue ( Task task ) : bool |
Attempts to remove a previously scheduled task from the scheduler.
|
|
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool |
Attempts to execute the specified task on the current thread.
|
Method | Description | |
---|---|---|
NotifyThreadPoolOfPendingWork ( ) : void |
Informs the ThreadPool that there's work to be executed for this scheduler.
|
public CustomTaskScheduler ( int maxDegreeOfParallelism ) : System | ||
maxDegreeOfParallelism | int | The maximum degree of parallelism provided by this scheduler. |
return | System |
protected final GetScheduledTasks ( ) : IEnumerable |
||
return | IEnumerable |
protected final QueueTask ( Task task ) : void | ||
task | Task | The task to be queued. |
return | void |
protected final TryDequeue ( Task task ) : bool | ||
task | Task | The task to be removed. |
return | bool |
protected final TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool | ||
task | Task | The task to be executed. |
taskWasPreviouslyQueued | bool | |
return | bool |