Space Engineers
Classes | Public Member Functions | Properties | List of all members
ParallelTasks.PrioritizedScheduler Class Reference

Sheduler that supports interruption of normal More...

Inheritance diagram for ParallelTasks.PrioritizedScheduler:
ParallelTasks.IWorkScheduler

Public Member Functions

 PrioritizedScheduler (int threadCount)
 Constructor. More...
 
void Schedule (Task task)
 Schedules a task for execution. More...
 
bool WaitForTasksToFinish (TimeSpan waitTimeout)
 Wait for all tasks to finish the work. More...
 

Properties

int ThreadCount [get]
 Reveals only the count of one thread array. This value is intended to be used as a "number of threads that can run in parallel." More...
 
- Properties inherited from ParallelTasks.IWorkScheduler
int ThreadCount [get]
 Gets a number of threads. This number must be correct, because it's used to run per-thread initialization task on all threads (by using barrier) More...
 

Detailed Description

Sheduler that supports interruption of normal

Definition at line 12 of file PrioritizedScheduler.cs.

Constructor & Destructor Documentation

ParallelTasks.PrioritizedScheduler.PrioritizedScheduler ( int  threadCount)
inline

Constructor.

Parameters
threadCountNumber of threads in each worker group.

Definition at line 32 of file PrioritizedScheduler.cs.

Member Function Documentation

void ParallelTasks.PrioritizedScheduler.Schedule ( Task  item)
inline

Schedules a task for execution.

Parameters
itemThe task to schedule.

Implements ParallelTasks.IWorkScheduler.

Definition at line 67 of file PrioritizedScheduler.cs.

bool ParallelTasks.PrioritizedScheduler.WaitForTasksToFinish ( TimeSpan  waitTimeout)
inline

Wait for all tasks to finish the work.

Implements ParallelTasks.IWorkScheduler.

Definition at line 83 of file PrioritizedScheduler.cs.

Property Documentation

int ParallelTasks.PrioritizedScheduler.ThreadCount
get

Reveals only the count of one thread array. This value is intended to be used as a "number of threads that can run in parallel."

Definition at line 24 of file PrioritizedScheduler.cs.


The documentation for this class was generated from the following file: