Method | Description | |
---|---|---|
Dispose ( ) : void |
Cleans up the scheduler by indicating that no more tasks will be queued. This method blocks until all threads successfully shutdown.
|
|
StaTaskScheduler ( int numberOfThreads ) : System |
Initializes a new instance of the StaTaskScheduler class with the specified concurrency level.
|
Method | Description | |
---|---|---|
GetScheduledTasks ( ) : IEnumerable |
Provides a list of the scheduled tasks for the debugger to consume.
|
|
QueueTask ( Task task ) : void |
Queues a Task to be executed by this scheduler.
|
|
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool |
Determines whether a Task may be inlined.
|
protected GetScheduledTasks ( ) : IEnumerable |
||
return | IEnumerable |
protected QueueTask ( Task task ) : void | ||
task | Task | The task to be executed. |
return | void |
public StaTaskScheduler ( int numberOfThreads ) : System | ||
numberOfThreads | int | The number of threads that should be created and used by this scheduler. |
return | System |
protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool | ||
task | Task | The task to be executed. |
taskWasPreviouslyQueued | bool | Whether the task was previously queued. |
return | bool |