C# 클래스 Jellyfish.Commands.BulkheadTaskScheduler

상속: System.Threading.Tasks.TaskScheduler, IDisposable
파일 보기 프로젝트 열기: Zenasoft/Jellyfish.Commands 1 사용 예제들

공개 메소드들

메소드 설명
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