SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::simulation::DefaultTaskScheduler Class Reference

#include <DefaultTaskScheduler.h>

Inheritance diagram for sofa::simulation::DefaultTaskScheduler:

Static Public Attributes

static const bool isRegistered = TaskScheduler::registerScheduler(DefaultTaskScheduler::name(), &DefaultTaskScheduler::create)
 

Public Member Functions

virtual void init (const unsigned int nbThread=0) final
 
virtual void stop (void) final
 
virtual unsigned int getThreadCount (void) const final
 
virtual const char * getCurrentThreadName () overridefinal
 
virtual int getCurrentThreadType () overridefinal
 
bool addTask (Task *task) overridefinal
 
void workUntilDone (Task::Status *status) overridefinal
 
Task::AllocatorgetTaskAllocator () overridefinal
 
- Public Member Functions inherited from sofa::simulation::TaskScheduler
virtual ~TaskScheduler ()
 

Static Public Member Functions

static const char * name ()
 
static DefaultTaskSchedulercreate ()
 
- Static Public Member Functions inherited from sofa::simulation::TaskScheduler
static TaskSchedulercreate (const char *name="")
 
static bool registerScheduler (const char *name, std::function< TaskScheduler *()> creatorFunc)
 
static TaskSchedulergetInstance ()
 
static const std::string & getCurrentName ()
 

Friends

class WorkerThread
 

Additional Inherited Members

- Static Protected Attributes inherited from sofa::simulation::TaskScheduler
static std::map< std::string, std::function< TaskScheduler *()> > _schedulers
 
static std::string _currentSchedulerName
 
static TaskScheduler_currentScheduler = nullptr
 

Attribute details

const bool sofa::simulation::DefaultTaskScheduler::isRegistered = TaskScheduler::registerScheduler(DefaultTaskScheduler::name(), &DefaultTaskScheduler::create)
static

Function details

bool sofa::simulation::DefaultTaskScheduler::addTask ( Task task)
finaloverridevirtual
DefaultTaskScheduler * sofa::simulation::DefaultTaskScheduler::create ( )
static
const char * sofa::simulation::DefaultTaskScheduler::getCurrentThreadName ( )
finaloverridevirtual
int sofa::simulation::DefaultTaskScheduler::getCurrentThreadType ( )
finaloverridevirtual
Task::Allocator * sofa::simulation::DefaultTaskScheduler::getTaskAllocator ( )
finaloverridevirtual
virtual unsigned int sofa::simulation::DefaultTaskScheduler::getThreadCount ( void  ) const
inlinefinalvirtual
void sofa::simulation::DefaultTaskScheduler::init ( const unsigned int  nbThread = 0)
finalvirtual
static const char* sofa::simulation::DefaultTaskScheduler::name ( )
inlinestatic
void sofa::simulation::DefaultTaskScheduler::stop ( void  )
finalvirtual
void sofa::simulation::DefaultTaskScheduler::workUntilDone ( Task::Status status)
finaloverridevirtual

Related details

friend class WorkerThread
friend