Space Engineers
|
An interface defining a task scheduler. More...
Public Member Functions | |
void | Schedule (Task item) |
Schedules a task for execution. More... | |
bool | WaitForTasksToFinish (TimeSpan waitTimeout) |
Wait for all tasks to finish the work. More... | |
Properties | |
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... | |
An interface defining a task scheduler.
Definition at line 11 of file IWorkScheduler.cs.
void ParallelTasks.IWorkScheduler.Schedule | ( | Task | item | ) |
Schedules a task for execution.
item | The task to schedule. |
Implemented in ParallelTasks.WorkStealingScheduler, ParallelTasks.PrioritizedScheduler, and ParallelTasks.FixedPriorityScheduler.
bool ParallelTasks.IWorkScheduler.WaitForTasksToFinish | ( | TimeSpan | waitTimeout | ) |
Wait for all tasks to finish the work.
Implemented in ParallelTasks.WorkStealingScheduler, ParallelTasks.PrioritizedScheduler, and ParallelTasks.FixedPriorityScheduler.
|
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)
Definition at line 17 of file IWorkScheduler.cs.