C# 클래스 Nandaka.Common.LimitedConcurrencyLevelTaskScheduler

Provides a task scheduler that ensures a maximum concurrency level while running on top of the thread pool. http://msdn.microsoft.com/en-us/library/ee789351(v=vs.110).aspx
상속: System.Threading.Tasks.TaskScheduler
파일 보기 프로젝트 열기: Nandaka/NijieDownloader 1 사용 예제들

공개 메소드들

메소드 설명
LimitedConcurrencyLevelTaskScheduler ( int maxDegreeOfParallelism, int hardLimit ) : System

보호된 메소드들

메소드 설명
GetScheduledTasks ( ) : IEnumerable
QueueTask ( Task task ) : void
TryDequeue ( Task task ) : bool
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool

비공개 메소드들

메소드 설명
NotifyThreadPoolOfPendingWork ( ) : void

메소드 상세

GetScheduledTasks() 보호된 최종 메소드

protected final GetScheduledTasks ( ) : IEnumerable
리턴 IEnumerable

LimitedConcurrencyLevelTaskScheduler() 공개 메소드

public LimitedConcurrencyLevelTaskScheduler ( int maxDegreeOfParallelism, int hardLimit ) : System
maxDegreeOfParallelism int
hardLimit int
리턴 System

QueueTask() 보호된 최종 메소드

protected final QueueTask ( Task task ) : void
task Task
리턴 void

TryDequeue() 보호된 최종 메소드

protected final TryDequeue ( Task task ) : bool
task Task
리턴 bool

TryExecuteTaskInline() 보호된 최종 메소드

protected final TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task
taskWasPreviouslyQueued bool
리턴 bool