C# Класс Jellyfish.Commands.BulkheadTaskScheduler

Наследование: System.Threading.Tasks.TaskScheduler, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BulkheadTaskScheduler ( int threadCount, string threadName ) : System

Initializes the scheduler.

Dispose ( ) : void

Initiates shutdown of the scheduler.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
ThreadBasedDispatchLoop ( ) : void

The dispatch loop run by all threads in this scheduler.

Описание методов

BulkheadTaskScheduler() публичный Метод

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.
Результат System

Dispose() публичный Метод

Initiates shutdown of the scheduler.
public Dispose ( ) : void
Результат void

GetScheduledTasks() защищенный Метод

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
Результат IEnumerable

QueueTask() защищенный Метод

Queues a task to the scheduler.
protected QueueTask ( Task task ) : void
task Task The task to be queued.
Результат void

TryExecuteTaskInline() защищенный Метод

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.
Результат bool