ST_engine  0.3-ALPHA
Public Member Functions | List of all members
subscriber Class Reference

This class handles a small queue for messages. More...

#include <subscriber.hpp>

Public Member Functions

messageget_next_message ()
 
void push_message (message *arg)
 

Detailed Description

This class handles a small queue for messages.

A simple wrapper around moodycamel::ConcurrentQueue<message*>.

Definition at line 20 of file subscriber.hpp.

Member Function Documentation

◆ get_next_message()

message * subscriber::get_next_message ( )
inline

Get the next message in the subscription queue.

Returns
The next message or nullptr if nothing was found.

Definition at line 39 of file subscriber.hpp.

◆ push_message()

void subscriber::push_message ( message arg)
inline

Pushes a new message to the message_bus.

Parameters
argThe message object to push.

Definition at line 49 of file subscriber.hpp.


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