#include <Worker.hpp>
Definition at line 55 of file Worker.hpp.
bota_worker::Worker::Worker |
( |
| ) |
|
|
delete |
bota_worker::Worker::Worker |
( |
const std::string & |
name, |
|
|
const double |
timestep, |
|
|
const WorkerCallback & |
callback |
|
) |
| |
- Parameters
-
name | name of the worker |
timestep | with a timestep of 0, the callback will be executed as fast as possible, with std::numeric_limits<double>::infinity() only once. |
callback | std::function pointing to the callback |
Definition at line 52 of file Worker.cpp.
bota_worker::Worker::Worker |
( |
const Worker & |
| ) |
|
|
delete |
bota_worker::Worker::Worker |
( |
Worker && |
other | ) |
|
|
noexcept |
bota_worker::Worker::~Worker |
( |
| ) |
|
|
virtual |
const std::string& bota_worker::Worker::getName |
( |
| ) |
const |
|
inline |
const Rate& bota_worker::Worker::getRate |
( |
| ) |
const |
|
inline |
Rate& bota_worker::Worker::getRate |
( |
| ) |
|
|
inline |
bool bota_worker::Worker::isDestructible |
( |
| ) |
const |
|
inline |
- Returns
- true if underlying thread has terminated and deleteWhenDone_ option is set.
Definition at line 103 of file Worker.hpp.
bool bota_worker::Worker::isRunning |
( |
| ) |
const |
|
inline |
void bota_worker::Worker::run |
( |
| ) |
|
|
private |
void bota_worker::Worker::setEnforceRate |
( |
const bool |
enforceRate | ) |
|
void bota_worker::Worker::setTimestep |
( |
const double |
timeStep | ) |
|
bool bota_worker::Worker::start |
( |
const int |
priority = 0 | ) |
|
void bota_worker::Worker::stop |
( |
const bool |
wait = true | ) |
|
std::atomic<bool> bota_worker::Worker::done_ |
|
private |
Rate bota_worker::Worker::rate_ |
|
private |
std::atomic<bool> bota_worker::Worker::running_ |
|
private |
std::thread bota_worker::Worker::thread_ |
|
private |
The documentation for this class was generated from the following files: