Interface for a concurrent task. More...
#include <arccore/concurrency/Task.h>
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. | |
Protected Member Functions | |
| virtual ITask * | _createChildTask (ITaskFunctor *functor)=0 |
Friends | |
| class | TaskFactory |
Interface for a concurrent task.
Tasks are created via TaskFactory.
|
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.