Méthode | Description | |
---|---|---|
BulkheadTaskScheduler ( int threadCount, string threadName ) : System |
Initializes the scheduler.
|
|
Dispose ( ) : void |
Initiates shutdown of the scheduler.
|
Méthode | Description | |
---|---|---|
GetScheduledTasks ( ) : IEnumerable |
Gets the tasks scheduled to this scheduler. This does not include the tasks on sub-schedulers. Those will be retrieved by the debugger separately. |
|
QueueTask ( Task task ) : void |
Queues a task to the scheduler.
|
|
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool |
Tries to execute a task synchronously on the current thread.
|
Méthode | Description | |
---|---|---|
ThreadBasedDispatchLoop ( ) : void |
The dispatch loop run by all threads in this scheduler.
|
public BulkheadTaskScheduler ( int threadCount, string threadName ) : System | ||
threadCount | int | The number of threads to create and use for processing work items. |
threadName | string | The name to use for each of the created threads. |
Résultat | System |
protected GetScheduledTasks ( ) : IEnumerable |
||
Résultat | IEnumerable |
protected QueueTask ( Task task ) : void | ||
task | Task | The task to be queued. |
Résultat | void |
protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool | ||
task | Task | The task to execute. |
taskWasPreviouslyQueued | bool | Whether the task was previously queued. |
Résultat | bool |