Interface for a concurrent task. More...
Public Member Functions | |
| virtual void | launchAndWait ()=0 |
| Launches the task and blocks until it finishes. | |
| virtual void | launchAndWait (ConstArrayView< ITask * > tasks)=0 |
| Launches the child tasks tasks and blocks until they finish. | |
| virtual void | launch ()=0 |
| Method allowing to launch the task. | |
| virtual void | wait ()=0 |
| Method allowing to wait the end of the task. | |
Protected Member Functions | |
| virtual ITask * | _createChildTask (ITaskFunctor *functor)=0 |
Friends | |
| class | TaskFactory |
Interface for a concurrent task.
Tasks are created via TaskFactory.
|
pure virtual |
Method allowing to launch the task.
\warming You must call wait() to delete this object! No warning will be displayed if you forgot to do so.
Implemented in Arcane::OneTBBTask, and Arcane::SerialTask.
|
pure virtual |
Launches the task and blocks until it finishes.
After calling this function, the task is destroyed and must not be used again.
Implemented in Arcane::OneTBBTask, and Arcane::SerialTask.
|
pure virtual |
Launches the child tasks tasks and blocks until they finish.
Implemented in Arcane::OneTBBTask, and Arcane::SerialTask.
|
pure virtual |
Method allowing to wait the end of the task.
This method must be called after launch() method.
Implemented in Arcane::OneTBBTask, and Arcane::SerialTask.