C# Class System.Threading.Tasks.Scheduler

Inheritance: TaskScheduler, IScheduler
Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
AreTasksFinished ( System.Threading.Tasks.Task parent ) : bool

Method Details

AddWork() public méthode

public AddWork ( System.Threading.Tasks.Task t ) : void
t System.Threading.Tasks.Task
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetScheduledTasks() protected méthode

protected GetScheduledTasks ( ) : System.Collections.Generic.IEnumerable
Résultat System.Collections.Generic.IEnumerable

InhibitPulse() public méthode

public InhibitPulse ( ) : void
Résultat void

ParticipateUntil() public méthode

public ParticipateUntil ( System.Threading.Tasks.Task task, Func predicate ) : bool
task System.Threading.Tasks.Task
predicate Func
Résultat bool

ParticipateUntil() public méthode

public ParticipateUntil ( Func predicate ) : void
predicate Func
Résultat void

ParticipateUntil() public méthode

public ParticipateUntil ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task
Résultat void

PulseAll() public méthode

public PulseAll ( ) : void
Résultat void

QueueTask() protected méthode

protected QueueTask ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task
Résultat void

Scheduler() public méthode

public Scheduler ( ) : System
Résultat System

Scheduler() public méthode

public Scheduler ( int maxWorker, int maxStackSize, ThreadPriority priority ) : System
maxWorker int
maxStackSize int
priority ThreadPriority
Résultat System

TryDequeue() protected méthode

protected TryDequeue ( System.Threading.Tasks.Task task ) : bool
task System.Threading.Tasks.Task
Résultat bool

TryExecuteTaskInline() protected méthode

protected TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool
task System.Threading.Tasks.Task
taskWasPreviouslyQueued bool
Résultat bool

UnInhibitPulse() public méthode

public UnInhibitPulse ( ) : void
Résultat void