![]() |
TSDuck v3.46-4930
MPEG Transport Stream Toolkit
|
#include <tsReactiveMessageQueueHandlerInterface.h>
Public Member Functions | |
| virtual void | handleDequeuedMessage (ReactiveMessageQueue< MSG > &queue, MessageQueue< MSG >::MessagePtr &msg, const ObjectPtr &user_data)=0 |
Interface class for reactive message queue handlers.
| MSG | The type of the messages to exchange. |
|
pure virtual |
Handle a dequeued message from a message queue.
| [in,out] | queue | Message queue for which the handler is invoked. |
| [in,out] | msg | A shared pointer to the dequeued message. The handler may safely copy the shared pointer, the pointed message will not be modified by teh ReactiveMessageQueue. The pointer is null if the enqueued message was a null pointer. |
| [in] | user_data | Application-specific shared pointer which was passed by the application. |