Goby3
3.1.5a
2024.05.23
|
#include <goby/middleware/io/detail/pty_interface.h>
Public Member Functions | |
PTYThread (const goby::middleware::protobuf::PTYConfig &config, int index=-1) | |
Constructs the thread. More... | |
~PTYThread () override | |
Public Member Functions inherited from goby::middleware::io::detail::IOThread< line_in_group, line_out_group, PubSubLayer::INTERPROCESS, PubSubLayer::INTERTHREAD, goby::middleware::protobuf::PTYConfig, boost::asio::posix::stream_descriptor, goby::middleware::SimpleThread, false > | |
IOThread (const goby::middleware::protobuf::PTYConfig &config, int index, std::string glog_group="i/o") | |
Constructs the thread. More... | |
void | initialize () override |
void | finalize () override |
virtual | ~IOThread () |
Public Member Functions inherited from goby::middleware::SimpleThread< goby::middleware::protobuf::PTYConfig > | |
SimpleThread (const goby::middleware::protobuf::PTYConfig &cfg, double loop_freq_hertz=0, int index=-1) | |
Construct a thread with a given configuration, optionally a loop frequency and/or index. More... | |
SimpleThread (const goby::middleware::protobuf::PTYConfig &cfg, boost::units::quantity< boost::units::si::frequency > loop_freq, int index=-1) | |
Construct a thread with a given configuration, a loop frequency (using boost::units) and optionally an index. More... | |
InterVehicleForwarder< InterProcessForwarder< InterThreadTransporter > > & | intervehicle () |
Access the transporter on the intervehicle layer (which wraps interprocess and interthread) More... | |
InterProcessForwarder< InterThreadTransporter > & | interprocess () |
Access the transporter on the interprocess layer (which wraps interthread) More... | |
InterThreadTransporter & | interthread () |
Access the transporter on the interthread layer (this is the innermost transporter) More... | |
Public Member Functions inherited from goby::middleware::Thread< goby::middleware::protobuf::PTYConfig, InterVehicleForwarder< InterProcessForwarder< InterThreadTransporter > > > | |
Thread (const goby::middleware::protobuf::PTYConfig &cfg, InterVehicleForwarder< InterProcessForwarder< 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 goby::middleware::protobuf::PTYConfig &cfg, InterVehicleForwarder< InterProcessForwarder< 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 goby::middleware::protobuf::PTYConfig &cfg, InterVehicleForwarder< InterProcessForwarder< 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) |
Definition at line 78 of file pty_interface.h.
|
inline |
Constructs the thread.
config | A reference to the Protocol Buffers config read by the main application at launch |
index | Thread index for multiple instances in a given application (-1 indicates a single instance) |
Definition at line 92 of file pty_interface.h.
|
inlineoverride |
Definition at line 99 of file pty_interface.h.