|
Peano
|
An empty task. More...
#include <Task.h>


Public Member Functions | |
| EmptyTask ()=delete | |
| EmptyTask (int priority) | |
| Create empty task. | |
| virtual void | run () override |
| Run the task. | |
| virtual std::string | toString () const override |
Public Member Functions inherited from tarch::multicore::Task | |
| Task (int taskType, int priority) | |
| Construct task. | |
| virtual | ~Task () |
| int | getTaskType () const |
| int | getPriority () const |
| void | setPriority (int priority) |
| Set priority. | |
| virtual bool | canFuse () const |
| virtual void | fuse (const std::vector< Task * > &otherTasks, int targetDevice=Host) |
| Fuse multiple tasks. | |
Additional Inherited Members | |
Static Public Attributes inherited from tarch::multicore::Task | |
| static constexpr int | DefaultPriority = 1024 |
| static constexpr int | Host = -1 |
| static constexpr int | DontFuse = -1 |
Protected Attributes inherited from tarch::multicore::Task | |
| const int | _taskType |
| int | _priority |
An empty task.
Empty tasks are useful in many cases to create synchronisation points in task graphs.
|
delete |
| tarch::multicore::EmptyTask::EmptyTask | ( | int | priority | ) |
Create empty task.
Every empty task is of the type DontFuse.
|
overridevirtual |
Run the task.
Implements tarch::multicore::Task.
|
overridevirtual |
Reimplemented from tarch::multicore::Task.