Space Engineers
|
Sheduler that supports interruption of normal More...
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... | |
Sheduler that supports interruption of normal
Definition at line 12 of file PrioritizedScheduler.cs.
|
inline |
Constructor.
threadCount | Number of threads in each worker group. |
Definition at line 32 of file PrioritizedScheduler.cs.
|
inline |
Schedules a task for execution.
item | The task to schedule. |
Implements ParallelTasks.IWorkScheduler.
Definition at line 67 of file PrioritizedScheduler.cs.
|
inline |
Wait for all tasks to finish the work.
Implements ParallelTasks.IWorkScheduler.
Definition at line 83 of file PrioritizedScheduler.cs.
|
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.