Space Engineers
Classes | Public Member Functions | Properties | List of all members
ParallelTasks.FixedPriorityScheduler Class Reference
Inheritance diagram for ParallelTasks.FixedPriorityScheduler:
ParallelTasks.IWorkScheduler

Public Member Functions

 FixedPriorityScheduler (int threadCount, ThreadPriority priority)
 
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]
 
- 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

Definition at line 12 of file FixedPriorityScheduler.cs.

Constructor & Destructor Documentation

ParallelTasks.FixedPriorityScheduler.FixedPriorityScheduler ( int  threadCount,
ThreadPriority  priority 
)
inline

Definition at line 24 of file FixedPriorityScheduler.cs.

Member Function Documentation

void ParallelTasks.FixedPriorityScheduler.Schedule ( Task  item)
inline

Schedules a task for execution.

Parameters
itemThe task to schedule.

Implements ParallelTasks.IWorkScheduler.

Definition at line 56 of file FixedPriorityScheduler.cs.

bool ParallelTasks.FixedPriorityScheduler.WaitForTasksToFinish ( TimeSpan  waitTimeout)
inline

Wait for all tasks to finish the work.

Implements ParallelTasks.IWorkScheduler.

Definition at line 77 of file FixedPriorityScheduler.cs.

Property Documentation

int ParallelTasks.FixedPriorityScheduler.ThreadCount
get

Definition at line 20 of file FixedPriorityScheduler.cs.


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