TSDuck v3.45-4733
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::ReactiveWorkerInterface Class Referenceabstract

Interface class for reactive workers. More...

#include <tsReactiveWorkerInterface.h>

Public Member Functions

virtual int executeWork (ReactiveWorkerPool &pool, const ObjectPtr &user_data)=0
 Execute a lengthy task in a worker thread.
 

Detailed Description

Interface class for reactive workers.

Member Function Documentation

◆ executeWork()

virtual int ts::ReactiveWorkerInterface::executeWork ( ReactiveWorkerPool pool,
const ObjectPtr user_data 
)
pure virtual

Execute a lengthy task in a worker thread.

Parameters
[in,out]poolWorker pool in the context of which the handler is invoked.
[in]user_dataApplication-specific shared pointer which is passed to the worker.
Returns
Application-specific error code. By convention, return SYS_SUCCESS on success.

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