#include <Worker.hpp>
Definition at line 55 of file Worker.hpp.
◆ Worker() [1/6]
bota_worker::Worker::Worker |
( |
| ) |
|
|
delete |
◆ Worker() [2/6]
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.
◆ Worker() [3/6]
◆ Worker() [4/6]
◆ Worker() [5/6]
bota_worker::Worker::Worker |
( |
const Worker & |
| ) |
|
|
delete |
◆ Worker() [6/6]
bota_worker::Worker::Worker |
( |
Worker && |
other | ) |
|
|
noexcept |
◆ ~Worker()
bota_worker::Worker::~Worker |
( |
| ) |
|
|
virtual |
◆ getName()
const std::string& bota_worker::Worker::getName |
( |
| ) |
const |
|
inline |
◆ getRate() [1/2]
Rate& bota_worker::Worker::getRate |
( |
| ) |
|
|
inline |
◆ getRate() [2/2]
const Rate& bota_worker::Worker::getRate |
( |
| ) |
const |
|
inline |
◆ isDestructible()
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.
◆ isRunning()
bool bota_worker::Worker::isRunning |
( |
| ) |
const |
|
inline |
◆ run()
void bota_worker::Worker::run |
( |
| ) |
|
|
private |
◆ setEnforceRate()
void bota_worker::Worker::setEnforceRate |
( |
const bool |
enforceRate | ) |
|
◆ setTimestep()
void bota_worker::Worker::setTimestep |
( |
const double |
timeStep | ) |
|
◆ start()
bool bota_worker::Worker::start |
( |
const int |
priority = 0 | ) |
|
◆ stop()
void bota_worker::Worker::stop |
( |
const bool |
wait = true | ) |
|
◆ done_
std::atomic<bool> bota_worker::Worker::done_ |
|
private |
◆ options_
◆ rate_
Rate bota_worker::Worker::rate_ |
|
private |
◆ running_
std::atomic<bool> bota_worker::Worker::running_ |
|
private |
◆ thread_
std::thread bota_worker::Worker::thread_ |
|
private |
The documentation for this class was generated from the following files: