EII Message Bus C Reference
|
#include <msgbus.hpp>
Public Member Functions | |
BaseMsgbusThread (config_t *msgbus_config, std::condition_variable &err_cv) | |
virtual | ~BaseMsgbusThread () |
virtual void | start () |
virtual void | join () |
virtual void | stop () |
Protected Member Functions | |
virtual void | run ()=0 |
Protected Attributes | |
MsgbusContext * | m_ctx |
std::atomic< bool > | m_stop |
std::condition_variable & | m_err_cv |
Base object for running message bus operations in a thread.
eii::msgbus::BaseMsgbusThread::BaseMsgbusThread | ( | config_t * | msgbus_config, |
std::condition_variable & | err_cv | ||
) |
Constructor
MsgbusException | Thrown if an error occurs in the message bus. |
msgbus_config | - Message bus configuration |
err_cv | - Condition variable to indicate an error in the thread |
|
virtual |
Destructor.
|
virtual |
Join with the underlying message bus thread.
|
protectedpure virtual |
Run method to be overriden by subclasses.
Implemented in eii::msgbus::SubscriberThread< T >, and eii::msgbus::PublisherThread.
|
virtual |
Start the message bus thread.
|
virtual |
Stop the message bus thread.