C# 클래스 MonoTouch.UrlImageStore.LimitedConcurrencyLevelTaskScheduler

Provides a task scheduler that ensures a maximum concurrency level while running on top of the ThreadPool.
상속: System.Threading.Tasks.TaskScheduler
파일 보기 프로젝트 열기: RobertKozak/MonoMobile.Views 1 사용 예제들

공개 메소드들

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

Initializes an instance of the LimitedConcurrencyLevelTaskScheduler class with the specified degree of parallelism.

보호된 메소드들

메소드 설명
GetScheduledTasks ( ) : IEnumerable

Gets an enumerable of the tasks currently scheduled on this scheduler.

QueueTask ( Task task ) : void

Queues a task to the scheduler.

TryDequeue ( Task task ) : bool

Attempts to remove a previously scheduled task from the scheduler.

TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool

Attempts to execute the specified task on the current thread.

비공개 메소드들

메소드 설명
NotifyThreadPoolOfPendingWork ( ) : void

Informs the ThreadPool that there's work to be executed for this scheduler.

메소드 상세

GetScheduledTasks() 보호된 최종 메소드

Gets an enumerable of the tasks currently scheduled on this scheduler.
protected final GetScheduledTasks ( ) : IEnumerable
리턴 IEnumerable

LimitedConcurrencyLevelTaskScheduler() 공개 메소드

Initializes an instance of the LimitedConcurrencyLevelTaskScheduler class with the specified degree of parallelism.
public LimitedConcurrencyLevelTaskScheduler ( int maxDegreeOfParallelism ) : System
maxDegreeOfParallelism int The maximum degree of parallelism provided by this scheduler.
리턴 System

QueueTask() 보호된 최종 메소드

Queues a task to the scheduler.
protected final QueueTask ( Task task ) : void
task Task The task to be queued.
리턴 void

TryDequeue() 보호된 최종 메소드

Attempts to remove a previously scheduled task from the scheduler.
protected final TryDequeue ( Task task ) : bool
task Task The task to be removed.
리턴 bool

TryExecuteTaskInline() 보호된 최종 메소드

Attempts to execute the specified task on the current thread.
protected final TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task The task to be executed.
taskWasPreviouslyQueued bool
리턴 bool