C# Class System.Threading.Tasks.Scheduler

Inheritance: TaskScheduler, IScheduler
Mostra file Open project: runefs/Marvin Class Usage Examples

Public Methods

Method Description
AddWork ( System.Threading.Tasks.Task t ) : void
Dispose ( ) : void
InhibitPulse ( ) : void
ParticipateUntil ( System.Threading.Tasks.Task task, Func predicate ) : bool
ParticipateUntil ( Func predicate ) : void
ParticipateUntil ( System.Threading.Tasks.Task task ) : void
PulseAll ( ) : void
Scheduler ( ) : System
Scheduler ( int maxWorker, int maxStackSize, ThreadPriority priority ) : System
UnInhibitPulse ( ) : void

Protected Methods

Method Description
GetScheduledTasks ( ) : System.Collections.Generic.IEnumerable
QueueTask ( System.Threading.Tasks.Task task ) : void
TryDequeue ( System.Threading.Tasks.Task task ) : bool
TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool

Private Methods

Method Description
AreTasksFinished ( System.Threading.Tasks.Task parent ) : bool

Method Details

AddWork() public method

public AddWork ( System.Threading.Tasks.Task t ) : void
t System.Threading.Tasks.Task
return void

Dispose() public method

public Dispose ( ) : void
return void

GetScheduledTasks() protected method

protected GetScheduledTasks ( ) : System.Collections.Generic.IEnumerable
return System.Collections.Generic.IEnumerable

InhibitPulse() public method

public InhibitPulse ( ) : void
return void

ParticipateUntil() public method

public ParticipateUntil ( System.Threading.Tasks.Task task, Func predicate ) : bool
task System.Threading.Tasks.Task
predicate Func
return bool

ParticipateUntil() public method

public ParticipateUntil ( Func predicate ) : void
predicate Func
return void

ParticipateUntil() public method

public ParticipateUntil ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task
return void

PulseAll() public method

public PulseAll ( ) : void
return void

QueueTask() protected method

protected QueueTask ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task
return void

Scheduler() public method

public Scheduler ( ) : System
return System

Scheduler() public method

public Scheduler ( int maxWorker, int maxStackSize, ThreadPriority priority ) : System
maxWorker int
maxStackSize int
priority ThreadPriority
return System

TryDequeue() protected method

protected TryDequeue ( System.Threading.Tasks.Task task ) : bool
task System.Threading.Tasks.Task
return bool

TryExecuteTaskInline() protected method

protected TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool
task System.Threading.Tasks.Task
taskWasPreviouslyQueued bool
return bool

UnInhibitPulse() public method

public UnInhibitPulse ( ) : void
return void