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

Interface class for reactive worker handlers. More...

#include <tsReactiveWorkerHandlerInterface.h>

Public Member Functions

virtual void handleWorkerCompletion (ReactiveWorkerPool &pool, int error_code, const ObjectPtr &user_data)=0
 Handle the end of a lengthy task which was delegated to a worker thread.
 

Detailed Description

Interface class for reactive worker handlers.

This interface shall be implemented by classes which delegate lengthy tasks to worker threads.

Member Function Documentation

◆ handleWorkerCompletion()

virtual void ts::ReactiveWorkerHandlerInterface::handleWorkerCompletion ( ReactiveWorkerPool pool,
int  error_code,
const ObjectPtr user_data 
)
pure virtual

Handle the end of a lengthy task which was delegated to a worker thread.

Parameters
[in,out]poolWorker pool in the context of which the handler is invoked.
[in]error_codeApplication-specific error code, as returned by executeWork(), SYS_SUCCESS on success.
[in]user_dataApplication-specific shared pointer which was passed to the worker.
See also
ReactiveWorkerInterface.

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