TSDuck Version 3.29-2562 (TSDuck - The MPEG Transport Stream Toolkit)
ts::PluginEventHandlerInterface Class Referenceabstract

Abstract interface to receive events from a plugin. More...

Public Member Functions

virtual ~PluginEventHandlerInterface ()
 Virtual destructor.
 
virtual void handlePluginEvent (const PluginEventContext &context)=0
 This handler is invoked when a plugin signals an event for which this object is registered. More...
 

Detailed Description

Abstract interface to receive events from a plugin.

This abstract interface must be implemented by classes which need to receive events from plugins.

Warnings:

  • Event handlers are invoked in the context of a plugin handler thread.
  • A global mutext is used for registration and execution of event handlers.
  • Event handler execution shall be as short as possible because:
    • It blocks the execution of the plugin thread (synchronous call).
    • It blocks execution of all other event handlers from all plugins (global mutex).

Member Function Documentation

◆ handlePluginEvent()

virtual void ts::PluginEventHandlerInterface::handlePluginEvent ( const PluginEventContext context)
pure virtual

This handler is invoked when a plugin signals an event for which this object is registered.

Parameters
[in]contextContext containing all information about the event.

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