Class TaskGraphSystem
System that can generate work into Task Graph for asynchronous execution.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Threading/TaskGraph.h
Syntax
public class TaskGraphSystem : public ScriptingObject
Constructors
~TaskGraphSystem()
Declaration
public ~TaskGraphSystem()
Fields
Order
The execution order of the system (systems with higher order are executed later, lower first).
Declaration
public int32 Order = 0
Field Value
int32
|
Methods
AddDependency(TaskGraphSystem* system)
Adds the dependency on the system execution. Before this system can be executed the given dependant system has to be executed first.
Declaration
public void AddDependency(TaskGraphSystem* system)
Parameters
TaskGraphSystem
system
The system to depend on. |
Execute(TaskGraph* graph)
Executes the system logic and schedules the asynchronous work.
Declaration
public virtual void Execute(TaskGraph* graph)
Parameters
TaskGraph
graph
The graph executing the system. |
PostExecute(TaskGraph* graph)
Called after executing all systems of the graph. Can be used to cleanup data (synchronous).
Declaration
public virtual void PostExecute(TaskGraph* graph)
Parameters
TaskGraph
graph
The graph executing the system. |
PreExecute(TaskGraph* graph)
Called before executing any systems of the graph. Can be used to initialize data (synchronous).
Declaration
public virtual void PreExecute(TaskGraph* graph)
Parameters
TaskGraph
graph
The graph executing the system. |
RemoveDependency(TaskGraphSystem* system)
Removes the dependency on the system execution.
Declaration
public void RemoveDependency(TaskGraphSystem* system)
Parameters
TaskGraphSystem
system
The system to not depend on anymore. |