SOFA API  82c4ea2a
Open source framework for multi-physics simuation
sofa::simulation::MainTaskSchedulerRegistry Class Reference

#include <MainTaskSchedulerRegistry.h>

Detailed Description

A set of static functions with the same interface than a @TaskSchedulerRegistry, working on a single instance of a @TaskSchedulerRegistry. All functions are thread-safe.

Static Public Member Functions

static bool addTaskSchedulerToRegistry (TaskScheduler *taskScheduler, const std::string &taskSchedulerName)
 
static TaskSchedulergetTaskScheduler (const std::string &taskSchedulerName)
 
static bool hasScheduler (const std::string &taskSchedulerName)
 
static const std::optional< std::pair< std::string, TaskScheduler * > > & getLastInserted ()
 
static void clear ()
 

Function details

◆ addTaskSchedulerToRegistry()

bool sofa::simulation::MainTaskSchedulerRegistry::addTaskSchedulerToRegistry ( TaskScheduler taskScheduler,
const std::string &  taskSchedulerName 
)
static

◆ clear()

void sofa::simulation::MainTaskSchedulerRegistry::clear ( )
static

◆ getLastInserted()

const std::optional< std::pair< std::string, TaskScheduler * > > & sofa::simulation::MainTaskSchedulerRegistry::getLastInserted ( )
static

◆ getTaskScheduler()

TaskScheduler * sofa::simulation::MainTaskSchedulerRegistry::getTaskScheduler ( const std::string &  taskSchedulerName)
static

◆ hasScheduler()

bool sofa::simulation::MainTaskSchedulerRegistry::hasScheduler ( const std::string &  taskSchedulerName)
static