SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::simulation::InitPerThreadDataTask Class Reference

#include <InitTasks.h>

Inheritance diagram for sofa::simulation::InitPerThreadDataTask:

Public Member Functions

 InitPerThreadDataTask (std::atomic< int > *atomicCounter, std::mutex *mutex, CpuTask::Status *status)
 
 ~InitPerThreadDataTask () override=default
 
MemoryAlloc run () override
 
- Public Member Functions inherited from sofa::simulation::CpuTask
StatusgetStatus (void) const override final
 
 CpuTask (Status *status, int scheduledThread=-1)
 
virtual ~CpuTask ()=default
 
- Public Member Functions inherited from sofa::simulation::Task
 Task (int scheduledThread)
 
virtual ~Task ()=default
 
int getScheduledThread () const
 

Additional Inherited Members

- Public Attributes inherited from sofa::simulation::Task
int m_id
 
- Protected Attributes inherited from sofa::simulation::Task
int m_scheduledThread
 
- Static Public Member Functions inherited from sofa::simulation::Task
static void * operator new (std::size_t sz)
 
static void operator delete (void *ptr)
 
static void operator delete (void *ptr, std::size_t sz)
 
static void * operator new[] (std::size_t sz)=delete
 
static Task::AllocatorgetAllocator ()
 
static void setAllocator (Task::Allocator *allocator)
 

Constructor details

◆ InitPerThreadDataTask()

sofa::simulation::InitPerThreadDataTask::InitPerThreadDataTask ( std::atomic< int > *  atomicCounter,
std::mutex *  mutex,
CpuTask::Status status 
)

◆ ~InitPerThreadDataTask()

sofa::simulation::InitPerThreadDataTask::~InitPerThreadDataTask ( )
overridedefault

Function details

◆ run()

Task::MemoryAlloc sofa::simulation::InitPerThreadDataTask::run ( )
overridevirtual