C# 클래스 CqlSharp.Threading.IOTaskScheduler

Provides a task scheduler that targets the I/O ThreadPool.
Based on the IOTaskScheduler as provided here: http://code.msdn.microsoft.com/Samples-for-Parallel-b4b76364/sourcecode?fileId=44488&pathId=1257700934
상속: System.Threading.Tasks.TaskScheduler, IDisposable
파일 보기 프로젝트 열기: reuzel/CqlSharp 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes of resources used by the scheduler.

IOTaskScheduler ( ) : System

Initializes a new instance of the IOTaskScheduler class.

보호된 메소드들

메소드 설명
GetScheduledTasks ( ) : IEnumerable

Gets an enumerable of tasks queued to the scheduler.

This implementation will always return an empty enumerable.

QueueTask ( Task task ) : void

Queues a task to the scheduler for execution on the I/O ThreadPool.

TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool

Executes a task on the current thread.

비공개 메소드들

메소드 설명
GetOrCreateWorkItem ( ) : System.Threading.WorkItem

Gets or create a work item.

메소드 상세

Dispose() 공개 메소드

Disposes of resources used by the scheduler.
public Dispose ( ) : void
리턴 void

GetScheduledTasks() 보호된 메소드

Gets an enumerable of tasks queued to the scheduler.
This implementation will always return an empty enumerable.
protected GetScheduledTasks ( ) : IEnumerable
리턴 IEnumerable

IOTaskScheduler() 공개 메소드

Initializes a new instance of the IOTaskScheduler class.
public IOTaskScheduler ( ) : System
리턴 System

QueueTask() 보호된 메소드

Queues a task to the scheduler for execution on the I/O ThreadPool.
protected QueueTask ( Task task ) : void
task Task The Task to queue.
리턴 void

TryExecuteTaskInline() 보호된 메소드

Executes a task on the current thread.
protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task The task to be executed.
taskWasPreviouslyQueued bool Ignored.
리턴 bool