Space Engineers
Public Member Functions | Properties | List of all members
ParallelTasks.IWorkScheduler Interface Reference

An interface defining a task scheduler. More...

Inheritance diagram for ParallelTasks.IWorkScheduler:
ParallelTasks.FixedPriorityScheduler ParallelTasks.PrioritizedScheduler ParallelTasks.WorkStealingScheduler

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...
 

Detailed Description

An interface defining a task scheduler.

Definition at line 11 of file IWorkScheduler.cs.

Member Function Documentation

void ParallelTasks.IWorkScheduler.Schedule ( Task  item)

Schedules a task for execution.

Parameters
itemThe task to schedule.

Implemented in ParallelTasks.WorkStealingScheduler, ParallelTasks.PrioritizedScheduler, and ParallelTasks.FixedPriorityScheduler.

bool ParallelTasks.IWorkScheduler.WaitForTasksToFinish ( TimeSpan  waitTimeout)

Property Documentation

int ParallelTasks.IWorkScheduler.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)

Definition at line 17 of file IWorkScheduler.cs.


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