DUNE: Uniform Navigational Environment
2016.09.0
|
Public Member Functions | |
Manager (Context &ctx) | |
~Manager (void) | |
void | start (void) |
void | start (const std::string &name) |
void | stop (const std::string &name) |
void | join (const std::string &name) |
void | writeParamsXML (std::ostream &os) const |
std::map< std::string, Task * > ::iterator | begin (void) |
std::map< std::string, Task * > ::iterator | end (void) |
Task * | getTaskByName (const std::string &name) |
void | measureCpuUsage (void) |
void | adjustPriorities (void) |
Static Public Member Functions | |
static std::string | getTaskName (const std::string &str) |
DUNE::Tasks::Manager::Manager | ( | Context & | ctx | ) |
Constructor.
ctx | task context. |
References DUNE::Tasks::Context::config, DUNE::Tasks::Factory::exists(), DUNE::Parsers::Config::get(), getTaskName(), DUNE::Tasks::Profiles::isSelected(), DUNE::Tasks::Context::profiles, and DUNE::Parsers::Config::sections().
void DUNE::Tasks::Manager::adjustPriorities | ( | void | ) |
|
inline |
|
inline |
|
inline |
|
static |
Retrieve the task name from a configuration section.
str | configuration section string. |
References DUNE::Utils::String::split().
Referenced by Manager().
void DUNE::Tasks::Manager::join | ( | const std::string & | name | ) |
Referenced by ~Manager().
void DUNE::Tasks::Manager::measureCpuUsage | ( | void | ) |
void DUNE::Tasks::Manager::start | ( | void | ) |
Start all tasks.
Referenced by DUNE::Daemon::onResourceInitialization().
void DUNE::Tasks::Manager::start | ( | const std::string & | name | ) |
Start a task with a given name.
name | task name. |
References DUNE::Tasks::Task::err(), DUNE::Tasks::Task::inf(), and DUNE::Concurrency::Runnable::start().
void DUNE::Tasks::Manager::stop | ( | const std::string & | name | ) |
Stop a task with a given name.
name | task name. |
Referenced by ~Manager().
void DUNE::Tasks::Manager::writeParamsXML | ( | std::ostream & | os | ) | const |
Referenced by DUNE::Daemon::writeParamsXML().