C# Class Lucene.Net.Support.LimitedConcurrencyLevelTaskScheduler

Provides a task scheduler that ensures a maximum concurrency level while running on top of the thread pool. Source: https://msdn.microsoft.com/en-us/library/system.threading.tasks.taskscheduler(v=vs.110).aspx
Inheritance: System.Threading.Tasks.TaskScheduler
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
LimitedConcurrencyLevelTaskScheduler ( int maxDegreeOfParallelism ) : System

Méthodes protégées

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

Private Methods

Méthode Description
NotifyThreadPoolOfPendingWork ( ) : void

Method Details

GetScheduledTasks() protected final méthode

protected final GetScheduledTasks ( ) : IEnumerable
Résultat IEnumerable

LimitedConcurrencyLevelTaskScheduler() public méthode

public LimitedConcurrencyLevelTaskScheduler ( int maxDegreeOfParallelism ) : System
maxDegreeOfParallelism int
Résultat System

QueueTask() protected final méthode

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

TryDequeue() protected final méthode

protected final TryDequeue ( Task task ) : bool
task Task
Résultat bool

TryExecuteTaskInline() protected final méthode

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