Class ILLIXR::zed_imu_thread
ClassList > ILLIXR > zed_imu_thread
#include <plugin.hpp>
Inherits the following classes: ILLIXR::threadloop
Public Functions
| Type | Name |
|---|---|
| virtual void | start () override Starts the thread. |
| virtual void | stop () override Joins the thread. |
| zed_imu_thread (const std::string & name, phonebook * pb) |
|
| ~zed_imu_thread () override |
Public Functions inherited from ILLIXR::threadloop
| Type | Name |
|---|---|
| virtual void | internal_stop () Stops the thread. |
| virtual void | start () override Starts the thread. |
| virtual void | stop () override Joins the thread. |
| threadloop (const std::string & name, phonebook * pb) |
|
| ~threadloop () override |
Public Functions inherited from ILLIXR::plugin
See ILLIXR::plugin
| Type | Name |
|---|---|
| std::string | get_name () noexcept const |
| plugin (std::string name, phonebook * pb) |
|
| void | spd_add_file_sink (const std::string & file_name, const std::string & extension, const std::string & log_level) |
| auto | spdlogger (const char * log_level) |
| virtual void | start () A method which Spindle calls when it starts the component. |
| virtual void | stop () A method which Spindle calls when it stops the component. |
| virtual | ~plugin () = default |
Protected Types inherited from ILLIXR::threadloop
| Type | Name |
|---|---|
| enum | skip_option |
Protected Attributes inherited from ILLIXR::threadloop
| Type | Name |
|---|---|
| std::size_t | iteration_no = 0 |
| std::size_t | skip_no = 0 |
Protected Attributes inherited from ILLIXR::plugin
See ILLIXR::plugin
| Type | Name |
|---|---|
| const std::size_t | id_ |
| std::string | name_ |
| const phonebook * | phonebook_ |
| std::shared_ptr< spdlog::logger > | plugin_logger_ |
| const std::shared_ptr< record_logger > | record_logger_ |
Protected Functions
| Type | Name |
|---|---|
| virtual void | _p_one_iteration () override Override with the computation the thread does every loop. |
| virtual skip_option | _p_should_skip () override Gets called in a tight loop, to gate the invocation of _p_one_iteration() __ |
Protected Functions inherited from ILLIXR::threadloop
| Type | Name |
|---|---|
| virtual void | _p_one_iteration () = 0 Override with the computation the thread does every loop. |
| virtual skip_option | _p_should_skip () Gets called in a tight loop, to gate the invocation of _p_one_iteration() __ |
| virtual void | _p_thread_setup () Gets called at setup time, from the new thread. |
| bool | should_terminate () Whether the thread has been asked to terminate. |
Public Functions Documentation
function start
Starts the thread.
virtual void ILLIXR::zed_imu_thread::start () override
This cannot go into the constructor because it starts a thread which calls _p_one_iteration() which is virtual in the child class.
Calling a virtual child method from the parent constructor will not work as expected 1. Instead, the ISO CPP FAQ recommends calling a start() method immediately after construction 2.
Implements ILLIXR::threadloop::start
function stop
Joins the thread.
virtual void ILLIXR::zed_imu_thread::stop () override
Must have already stopped the stoplight.
Implements ILLIXR::threadloop::stop
function zed_imu_thread
ILLIXR::zed_imu_thread::zed_imu_thread (
const std::string & name,
phonebook * pb
)
function ~zed_imu_thread
ILLIXR::zed_imu_thread::~zed_imu_thread () override
Protected Functions Documentation
function _p_one_iteration
Override with the computation the thread does every loop.
virtual void ILLIXR::zed_imu_thread::_p_one_iteration () override
This gets called in rapid succession.
Implements ILLIXR::threadloop::_p_one_iteration
function _p_should_skip
Gets called in a tight loop, to gate the invocation of _p_one_iteration() __
virtual skip_option ILLIXR::zed_imu_thread::_p_should_skip () override
Implements ILLIXR::threadloop::_p_should_skip
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/illixr_release/ILLIXR/plugins/zed/plugin.hpp