C# Class 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
Inheritance: System.Threading.Tasks.TaskScheduler, IDisposable
Afficher le fichier Open project: reuzel/CqlSharp Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes of resources used by the scheduler.

IOTaskScheduler ( ) : System

Initializes a new instance of the IOTaskScheduler class.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
GetOrCreateWorkItem ( ) : System.Threading.WorkItem

Gets or create a work item.

Method Details

Dispose() public méthode

Disposes of resources used by the scheduler.
public Dispose ( ) : void
Résultat void

GetScheduledTasks() protected méthode

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

IOTaskScheduler() public méthode

Initializes a new instance of the IOTaskScheduler class.
public IOTaskScheduler ( ) : System
Résultat System

QueueTask() protected méthode

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

TryExecuteTaskInline() protected méthode

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