#include <WorkerManager.hpp>
|
template<class T > |
bool | addWorker (const std::string &name, const double timestep, bool(T::*fp)(const WorkerEvent &), T *obj, const int priority=0, const bool autostart=true) |
|
template<class T > |
bool | addWorker (const std::string &name, const double timestep, bool(T::*cfp)(const WorkerEvent &), void(T::*rfp)(), T *obj, const int priority=0, const bool autostart=true) |
|
bool | addWorker (const std::string &name, const double timestep, const WorkerCallback &callback, const int priority=0, const bool autostart=true) |
|
bool | addWorker (const std::string &name, const double timestep, const WorkerCallback &callback, const WorkerCallbackFailureReaction &callbackFailureReaction, const int priority=0, const bool autostart=true) |
|
bool | addWorker (const WorkerOptions &options, const bool autostart=true) |
|
void | cancelWorker (const std::string &name, const bool wait=true) |
|
void | cancelWorkers (const bool wait=true) |
|
void | cleanDestructibleWorkers () |
|
bool | hasWorker (const std::string &name) |
|
void | setWorkerTimestep (const std::string &name, const double timeStep) |
|
void | startWorker (const std::string &name, const int priority=0) |
|
void | startWorkers () |
|
void | stopWorker (const std::string &name, const bool wait=true) |
|
void | stopWorkers (const bool wait=true) |
|
| WorkerManager () |
|
virtual | ~WorkerManager () |
|
Definition at line 19 of file WorkerManager.hpp.
bota_worker::WorkerManager::WorkerManager |
( |
| ) |
|
bota_worker::WorkerManager::~WorkerManager |
( |
| ) |
|
|
virtual |
template<class T >
bool bota_worker::WorkerManager::addWorker |
( |
const std::string & |
name, |
|
|
const double |
timestep, |
|
|
bool(T::*)(const WorkerEvent &) |
fp, |
|
|
T * |
obj, |
|
|
const int |
priority = 0 , |
|
|
const bool |
autostart = true |
|
) |
| |
|
inline |
template<class T >
bool bota_worker::WorkerManager::addWorker |
( |
const std::string & |
name, |
|
|
const double |
timestep, |
|
|
bool(T::*)(const WorkerEvent &) |
cfp, |
|
|
void(T::*)() |
rfp, |
|
|
T * |
obj, |
|
|
const int |
priority = 0 , |
|
|
const bool |
autostart = true |
|
) |
| |
|
inline |
bool bota_worker::WorkerManager::addWorker |
( |
const std::string & |
name, |
|
|
const double |
timestep, |
|
|
const WorkerCallback & |
callback, |
|
|
const int |
priority = 0 , |
|
|
const bool |
autostart = true |
|
) |
| |
|
inline |
bool bota_worker::WorkerManager::addWorker |
( |
const std::string & |
name, |
|
|
const double |
timestep, |
|
|
const WorkerCallback & |
callback, |
|
|
const WorkerCallbackFailureReaction & |
callbackFailureReaction, |
|
|
const int |
priority = 0 , |
|
|
const bool |
autostart = true |
|
) |
| |
|
inline |
bool bota_worker::WorkerManager::addWorker |
( |
const WorkerOptions & |
options, |
|
|
const bool |
autostart = true |
|
) |
| |
void bota_worker::WorkerManager::cancelWorker |
( |
const std::string & |
name, |
|
|
const bool |
wait = true |
|
) |
| |
void bota_worker::WorkerManager::cancelWorkers |
( |
const bool |
wait = true | ) |
|
Requests all workers to stop, then joins their threads and deletes their instances.
Definition at line 107 of file WorkerManager.cpp.
void bota_worker::WorkerManager::cleanDestructibleWorkers |
( |
| ) |
|
bool bota_worker::WorkerManager::hasWorker |
( |
const std::string & |
name | ) |
|
void bota_worker::WorkerManager::setWorkerTimestep |
( |
const std::string & |
name, |
|
|
const double |
timeStep |
|
) |
| |
void bota_worker::WorkerManager::startWorker |
( |
const std::string & |
name, |
|
|
const int |
priority = 0 |
|
) |
| |
void bota_worker::WorkerManager::startWorkers |
( |
| ) |
|
void bota_worker::WorkerManager::stopWorker |
( |
const std::string & |
name, |
|
|
const bool |
wait = true |
|
) |
| |
void bota_worker::WorkerManager::stopWorkers |
( |
const bool |
wait = true | ) |
|
std::mutex bota_worker::WorkerManager::mutexWorkers_ |
|
private |
std::unordered_map<std::string, Worker> bota_worker::WorkerManager::workers_ |
|
private |
The documentation for this class was generated from the following files: