Goby3  3.1.4
2024.02.22
goby::util::LineBasedCommsThreadStub< Config > Class Template Reference

#include <goby/util/linebasedcomms/thread_stub.h>

Inheritance diagram for goby::util::LineBasedCommsThreadStub< Config >:
goby::middleware::Thread< Config, middleware::InterThreadTransporter >

Public Member Functions

 LineBasedCommsThreadStub (const Config &cfg, double loop_freq_hertz, int index)
 
 ~LineBasedCommsThreadStub ()=default
 
middleware::InterThreadTransporterinterthread ()
 
- Public Member Functions inherited from goby::middleware::Thread< Config, middleware::InterThreadTransporter >
 Thread (const Config &cfg, middleware::InterThreadTransporter *transporter, int index)
 Construct a thread with a given configuration, underlying transporter, and index (for multiple instantiations), but without any loop() frequency. More...
 
 Thread (const Config &cfg, middleware::InterThreadTransporter *transporter, double loop_freq_hertz=0, int index=-1)
 Construct a thread with all possible metadata (using double to specify frequency in Hertz) More...
 
 Thread (const Config &cfg, middleware::InterThreadTransporter *transporter, boost::units::quantity< boost::units::si::frequency > loop_freq, int index=-1)
 Construct a thread with all possible metadata (using boost::units to specify frequency) More...
 
virtual ~Thread ()
 
void run (std::atomic< bool > &alive)
 Run the thread until the boolean reference passed is set false. This call blocks, and should be run in a std::thread by the caller. More...
 
int index () const
 
std::type_index type_index ()
 
void set_type_index (std::type_index type_i)
 
std::string name ()
 
void set_name (const std::string &name)
 
int uid ()
 
void set_uid (int uid)
 

Additional Inherited Members

- Public Types inherited from goby::middleware::Thread< Config, middleware::InterThreadTransporter >
using Transporter = middleware::InterThreadTransporter
 
- Static Public Attributes inherited from goby::middleware::Thread< Config, middleware::InterThreadTransporter >
static constexpr goby::middleware::Group shutdown_group_
 
static constexpr goby::middleware::Group joinable_group_
 
- Protected Member Functions inherited from goby::middleware::Thread< Config, middleware::InterThreadTransporter >
 Thread (const Config &cfg, boost::units::quantity< boost::units::si::frequency > loop_freq, int index=-1)
 
void set_transporter (middleware::InterThreadTransporter *transporter)
 
virtual void loop ()
 
double loop_frequency_hertz () const
 
decltype(loop_frequency_) loop_frequency () const
 
double loop_max_frequency () const
 
void run_once ()
 
middleware::InterThreadTransportertransporter () const
 
const Config & cfg () const
 
virtual void initialize ()
 
virtual void finalize ()
 
void thread_health (goby::middleware::protobuf::ThreadHealth &health)
 
virtual void health (goby::middleware::protobuf::ThreadHealth &health)
 Called when HealthRequest is made by goby_coroner. More...
 
void thread_quit ()
 
bool alive ()
 

Detailed Description

template<typename Config>
class goby::util::LineBasedCommsThreadStub< Config >

Definition at line 36 of file thread_stub.h.

Constructor & Destructor Documentation

◆ LineBasedCommsThreadStub()

template<typename Config >
goby::util::LineBasedCommsThreadStub< Config >::LineBasedCommsThreadStub ( const Config &  cfg,
double  loop_freq_hertz,
int  index 
)
inline

Definition at line 40 of file thread_stub.h.

◆ ~LineBasedCommsThreadStub()

template<typename Config >
goby::util::LineBasedCommsThreadStub< Config >::~LineBasedCommsThreadStub ( )
default

Member Function Documentation

◆ interthread()

template<typename Config >
middleware::InterThreadTransporter& goby::util::LineBasedCommsThreadStub< Config >::interthread ( )
inline

Definition at line 47 of file thread_stub.h.


The documentation for this class was generated from the following file: