|
Space Engineers
|
A "work stealing" work scheduler class. More...
Public Member Functions | |
| WorkStealingScheduler () | |
| Creates a new instance of the WorkStealingScheduler class. More... | |
| WorkStealingScheduler (int numThreads, ThreadPriority priority) | |
| Creates a new instance of the WorkStealingScheduler class. 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] |
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... | |
A "work stealing" work scheduler class.
Definition at line 14 of file WorkStealingScheduler.cs.
|
inline |
Creates a new instance of the WorkStealingScheduler class.
Definition at line 29 of file WorkStealingScheduler.cs.
|
inline |
Creates a new instance of the WorkStealingScheduler class.
| numThreads | The number of threads to create. |
Definition at line 48 of file WorkStealingScheduler.cs.
|
inline |
Schedules a task for execution.
| task | The task to schedule. |
Implements ParallelTasks.IWorkScheduler.
Definition at line 87 of file WorkStealingScheduler.cs.
|
inline |
Wait for all tasks to finish the work.
Implements ParallelTasks.IWorkScheduler.
Definition at line 114 of file WorkStealingScheduler.cs.
|
get |
Definition at line 22 of file WorkStealingScheduler.cs.
1.8.8