SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::simulation::CpuTask Class Reference

#include <Task.h>

Inheritance diagram for sofa::simulation::CpuTask:

Detailed Description

Base class to implement a CPU task all the tasks running on the CPU should inherits from this class

Classes

class  Status
 

Public Member Functions

virtual CpuTask::StatusgetStatus (void) const overridefinal
 
 CpuTask (CpuTask::Status *status, int scheduledThread=-1)
 
virtual ~CpuTask ()
 
- Public Member Functions inherited from sofa::simulation::Task
 Task (int scheduledThread)
 
virtual ~Task ()
 
virtual MemoryAlloc run ()=0
 
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

sofa::simulation::CpuTask::CpuTask ( CpuTask::Status status,
int  scheduledThread = -1 
)
sofa::simulation::CpuTask::~CpuTask ( )
virtual

Function details

virtual CpuTask::Status* sofa::simulation::CpuTask::getStatus ( void  ) const
inlinefinaloverridevirtual