RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rtctk::telRepub::PubThreadMudpi Class Reference

DDS publisher thread class that supports (re)publishing of MUDPI samples. More...

#include <ddsPubThread.hpp>

Inheritance diagram for rtctk::telRepub::PubThreadMudpi:
rtctk::telRepub::PubThread

Public Member Functions

 PubThreadMudpi (DataWriter &data_writer, componentFramework::ServiceContainer &service, CfgPubThreadMudpi &cfg, WranglerFunction &&wrangler)
 Spawns publisher thread and sets up performance counters for monitoring.
 
virtual ~PubThreadMudpi ()
 Joins publisher thread and prints some statistics information.
 
void RunAsync () override
 Enable publishing data.
 
MudpiProcessorGetMudpiProcessor ()
 Get MudpiProcessor.
 
std::shared_ptr< QueueGetQueue ()
 
bool Monitor () override
 
- Public Member Functions inherited from 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.
 
virtual ~PubThread ()
 Joins publisher thread and prints some statistics information.
 
void IdleAsync ()
 Disable publishing data.
 
std::string GetTopicName ()
 

Additional Inherited Members

- Protected Types inherited from rtctk::telRepub::PubThread
enum class  State { Idle , Run , Exit }
 
- Protected Attributes inherited from rtctk::telRepub::PubThread
std::string m_topic_name
 
log4cplus::Logger m_logger
 
std::atomic< Statem_requested_state
 
std::thread m_thread
 
std::string m_thread_name
 
DataWriterm_data_writer
 
ComponentMetricsIfm_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 inherited from rtctk::telRepub::PubThread
static std::atomic< std::uint16_t > s_count = 0
 

Detailed Description

DDS publisher thread class that supports (re)publishing of MUDPI samples.

Constructor & Destructor Documentation

◆ PubThreadMudpi()

rtctk::telRepub::PubThreadMudpi::PubThreadMudpi ( DataWriter & data_writer,
componentFramework::ServiceContainer & service,
CfgPubThreadMudpi & cfg,
WranglerFunction && wrangler )

Spawns publisher thread and sets up performance counters for monitoring.

Parameters
[in,out]data_writerDDS data writer.
[in,out]serviceComponent service.
[in]cfgMUDPI publisher thread configuration
[in]wranglerThe wrangler function to perform optional low level data transformations.

◆ ~PubThreadMudpi()

rtctk::telRepub::PubThreadMudpi::~PubThreadMudpi ( )
virtual

Joins publisher thread and prints some statistics information.

Member Function Documentation

◆ GetMudpiProcessor()

MudpiProcessor & rtctk::telRepub::PubThreadMudpi::GetMudpiProcessor ( )

◆ GetQueue()

std::shared_ptr< Queue > rtctk::telRepub::PubThreadMudpi::GetQueue ( )

◆ Monitor()

bool rtctk::telRepub::PubThreadMudpi::Monitor ( )
overridevirtual

Reimplemented from rtctk::telRepub::PubThread.

◆ RunAsync()

void rtctk::telRepub::PubThreadMudpi::RunAsync ( )
overridevirtual

Enable publishing data.

Reimplemented from rtctk::telRepub::PubThread.


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