Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::OneTBBTask Class Reference

Public Member Functions

 OneTBBTask (ITaskFunctor *f)
OneTBBTaskFunctor taskFunctor ()
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.

Public Attributes

ITaskFunctorm_functor = nullptr
FixedArray< char, FUNCTOR_CLASS_SIZE > m_functor_buf

Static Public Attributes

static const int FUNCTOR_CLASS_SIZE = 32

Protected Member Functions

ITask_createChildTask (ITaskFunctor *functor) override

Detailed Description

Definition at line 303 of file TBBTaskImplementation.cc.

Constructor & Destructor Documentation

◆ OneTBBTask()

Arcane::OneTBBTask::OneTBBTask ( ITaskFunctor * f)
inlineexplicit

Definition at line 312 of file TBBTaskImplementation.cc.

Member Function Documentation

◆ _createChildTask()

ITask * Arcane::OneTBBTask::_createChildTask ( ITaskFunctor * functor)
overrideprotectedvirtual

Implements Arcane::ITask.

Definition at line 1298 of file TBBTaskImplementation.cc.

◆ launchAndWait() [1/2]

void Arcane::OneTBBTask::launchAndWait ( )
overridevirtual

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 1263 of file TBBTaskImplementation.cc.

◆ launchAndWait() [2/2]

void Arcane::OneTBBTask::launchAndWait ( ConstArrayView< ITask * > tasks)
overridevirtual

Launches the child tasks tasks and blocks until they finish.

Implements Arcane::ITask.

Definition at line 1275 of file TBBTaskImplementation.cc.

References Arcane::ConstArrayView< T >::size().

◆ taskFunctor()

OneTBBTaskFunctor Arcane::OneTBBTask::taskFunctor ( )
inline

Definition at line 320 of file TBBTaskImplementation.cc.

Member Data Documentation

◆ FUNCTOR_CLASS_SIZE

const int Arcane::OneTBBTask::FUNCTOR_CLASS_SIZE = 32
static

Definition at line 308 of file TBBTaskImplementation.cc.

◆ m_functor

ITaskFunctor* Arcane::OneTBBTask::m_functor = nullptr

Definition at line 330 of file TBBTaskImplementation.cc.

◆ m_functor_buf

FixedArray<char, FUNCTOR_CLASS_SIZE> Arcane::OneTBBTask::m_functor_buf

Definition at line 331 of file TBBTaskImplementation.cc.


The documentation for this class was generated from the following file: