Public Types | |
| typedef TaskFunctor< SerialTask > | TaskType |
Public Member Functions | |
| SerialTask (ITaskFunctor *f) | |
| void | launchAndWait () override |
| Launches the task and blocks until it finishes. | |
| void | launchAndWait (ConstArrayView< ITask * > tasks) override |
| Launches the child tasks tasks and blocks until they finish. | |
| ITask * | _createChildTask (ITaskFunctor *functor) override |
| void | launch () override |
| Method allowing to launch the task. | |
| void | wait () override |
| Method allowing to wait the end of the task. | |
Static Public Attributes | |
| static const int | FUNCTOR_CLASS_SIZE = sizeof(TaskType) |
Private Attributes | |
| ITaskFunctor * | m_functor |
| char | functor_buf [FUNCTOR_CLASS_SIZE] |
Definition at line 33 of file ConcurrencyUtils.cc.
| typedef TaskFunctor<SerialTask> Arcane::SerialTask::TaskType |
Definition at line 38 of file ConcurrencyUtils.cc.
|
inline |
Definition at line 46 of file ConcurrencyUtils.cc.
|
inlineoverridevirtual |
Implements Arcane::ITask.
Definition at line 74 of file ConcurrencyUtils.cc.
|
inlineoverridevirtual |
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.
Implements Arcane::ITask.
Definition at line 78 of file ConcurrencyUtils.cc.
References Arcane::ITaskFunctor::executeFunctor().
|
inlineoverridevirtual |
Launches the task and blocks until it finishes.
After calling this function, the task is destroyed and must not be used again.
Implements Arcane::ITask.
Definition at line 59 of file ConcurrencyUtils.cc.
References Arcane::ITaskFunctor::executeFunctor().
|
inlineoverridevirtual |
Launches the child tasks tasks and blocks until they finish.
Implements Arcane::ITask.
Definition at line 69 of file ConcurrencyUtils.cc.
References Arcane::ConstArrayView< T >::size().
|
inlineoverridevirtual |
Method allowing to wait the end of the task.
This method must be called after launch() method.
Implements Arcane::ITask.
Definition at line 87 of file ConcurrencyUtils.cc.
|
private |
Definition at line 95 of file ConcurrencyUtils.cc.
|
static |
Definition at line 42 of file ConcurrencyUtils.cc.
|
private |
Definition at line 94 of file ConcurrencyUtils.cc.