EII Message Bus C Reference
|
#include <msgbus.hpp>
Public Member Functions | |
PublisherThread (config_t *msgbus_config, std::condition_variable &err_cv, std::string topic, MessageQueue *input_queue, std::string service_name) | |
~PublisherThread () | |
![]() | |
BaseMsgbusThread (config_t *msgbus_config, std::condition_variable &err_cv) | |
virtual | ~BaseMsgbusThread () |
virtual void | start () |
virtual void | join () |
virtual void | stop () |
Protected Member Functions | |
void | run () override |
Additional Inherited Members | |
![]() | |
MsgbusContext * | m_ctx |
std::atomic< bool > | m_stop |
std::condition_variable & | m_err_cv |
Helper object for publishing messages in a thread given over an input queue.
eii::msgbus::PublisherThread::PublisherThread | ( | config_t * | msgbus_config, |
std::condition_variable & | err_cv, | ||
std::string | topic, | ||
MessageQueue * | input_queue, | ||
std::string | service_name | ||
) |
Constructor.
MsgbusException | Thrown if an error occurs in the message bus. |
msgbus_config | - Message bus context configuration |
err_cv | - Condition variable to indicate an error in the thread |
topic | - Topic to publish on |
input_queue | - Input queue of messages to publish |
service_name | - Name of the service running the publisher thread |
eii::msgbus::PublisherThread::~PublisherThread | ( | ) |
Destructor
|
overrideprotectedvirtual |
Publisher thread run method.
Implements eii::msgbus::BaseMsgbusThread.