|
RTC Toolkit 5.1.0
|
DDS publisher thread class that supports production and simulation mode. More...
#include <ddsPubThread.hpp>
Public Member Functions | |
| PubThread (DataWriter &data_writer, componentFramework::ServiceContainer &service, const numapp::NumaPolicies &thread_policies, std::uint32_t sample_id_increment) | |
| Spawns publisher thread and sets up performance counters for monitoring. | |
| virtual | ~PubThread () |
| Joins publisher thread and prints some statistics information. | |
| virtual void | RunAsync () |
| Enable publishing data. | |
| void | IdleAsync () |
| Disable publishing data. | |
| std::string | GetTopicName () |
| virtual bool | Monitor () |
Protected Types | |
| enum class | State { Idle , Run , Exit } |
Protected Attributes | |
| std::string | m_topic_name |
| log4cplus::Logger | m_logger |
| std::atomic< State > | m_requested_state |
| std::thread | m_thread |
| std::string | m_thread_name |
| DataWriter & | m_data_writer |
| ComponentMetricsIf & | m_metrics |
| componentFramework::AlertSource | m_topic_publish_alert |
| Alerts. | |
| componentFramework::AlertSource | m_wrangler_alert |
| perfc::CounterI64 | m_pc_published_samples |
| Diverse Performance counters. | |
| perfc::ScopedRegistration | m_pc_published_samples_reg |
| perfc::CounterI64 | m_pc_publication_errors |
| perfc::ScopedRegistration | m_pc_publication_errors_reg |
| perfc::CounterI64 | m_pc_last_sample_id_published |
| perfc::ScopedRegistration | m_pc_last_sample_id_published_reg |
| std::unique_ptr< DurationMonitor<> > | m_dur_mon |
| std::uint32_t | m_expected_sample_id_increment |
Static Protected Attributes | |
| static std::atomic< std::uint16_t > | s_count = 0 |
DDS publisher thread class that supports production and simulation mode.
|
strongprotected |
| rtctk::telRepub::PubThread::PubThread | ( | DataWriter & | data_writer, |
| componentFramework::ServiceContainer & | service, | ||
| const numapp::NumaPolicies & | thread_policies, | ||
| std::uint32_t | sample_id_increment ) |
Spawns publisher thread and sets up performance counters for monitoring.
| [in,out] | data_writer | DDS data writer. |
| [in,out] | service | Component service. |
| [in] | thread_policies | Thread policies to apply to the publisher thread. |
| [in] | sample_id_increment | Subsample factor (1 or larger). |
|
virtual |
Joins publisher thread and prints some statistics information.
| std::string rtctk::telRepub::PubThread::GetTopicName | ( | ) |
| void rtctk::telRepub::PubThread::IdleAsync | ( | ) |
Disable publishing data.
|
virtual |
Reimplemented in rtctk::telRepub::PubThreadMudpi.
|
virtual |
Enable publishing data.
Reimplemented in rtctk::telRepub::PubThreadMudpi.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Diverse Performance counters.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Alerts.
|
protected |
|
staticprotected |