C# Class Jellyfish.Commands.BulkheadTaskScheduler

Inheritance: System.Threading.Tasks.TaskScheduler, IDisposable
Afficher le fichier Open project: Zenasoft/Jellyfish.Commands Class Usage Examples

Méthodes publiques

Méthode Description
BulkheadTaskScheduler ( int threadCount, string threadName ) : System

Initializes the scheduler.

Dispose ( ) : void

Initiates shutdown of the scheduler.

Méthodes protégées

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.

Private Methods

Méthode Description
ThreadBasedDispatchLoop ( ) : void

The dispatch loop run by all threads in this scheduler.

Method Details

BulkheadTaskScheduler() public méthode

Initializes the 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

Dispose() public méthode

Initiates shutdown of the scheduler.
public Dispose ( ) : void
Résultat void

GetScheduledTasks() protected méthode

Gets the tasks scheduled to this scheduler.
This does not include the tasks on sub-schedulers. Those will be retrieved by the debugger separately.
protected GetScheduledTasks ( ) : IEnumerable
Résultat IEnumerable

QueueTask() protected méthode

Queues a task to the scheduler.
protected QueueTask ( Task task ) : void
task Task The task to be queued.
Résultat void

TryExecuteTaskInline() protected méthode

Tries to execute a task synchronously on the current thread.
protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task The task to execute.
taskWasPreviouslyQueued bool Whether the task was previously queued.
Résultat bool