C# Class Shared.RoundRobinThreadAffinedTaskScheduler

Inheritance: System.Threading.Tasks.TaskScheduler, IDisposable
Afficher le fichier Open project: jbouzaglou/PetPigeonsESB

Méthodes publiques

Méthode Description
Dispose ( ) : void
RoundRobinThreadAffinedTaskScheduler ( int numberOfThreads ) : System

Méthodes protégées

Méthode Description
GetScheduledTasks ( ) : IEnumerable
QueueTask ( Task task ) : void
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool

Private Methods

Méthode Description
CreateThreads ( int numberOfThreads, int processorIndexes ) : void
RemoveThreadAffinity ( ) : void
SetThreadAffinity ( int processorIndex ) : void
ThreadStartWithAffinity ( int threadIndex, int processorIndexes ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetScheduledTasks() protected méthode

protected GetScheduledTasks ( ) : IEnumerable
Résultat IEnumerable

QueueTask() protected méthode

protected QueueTask ( Task task ) : void
task Task
Résultat void

RoundRobinThreadAffinedTaskScheduler() public méthode

public RoundRobinThreadAffinedTaskScheduler ( int numberOfThreads ) : System
numberOfThreads int
Résultat System

TryExecuteTaskInline() protected méthode

protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task
taskWasPreviouslyQueued bool
Résultat bool