TSDuck v3.38-3696
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::PluginEventHandlerInterface Class Referenceabstract

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

#include <tsPluginEventHandlerInterface.h>

Public Member Functions

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

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: