![]() |
TSDuck v3.45-4733
MPEG Transport Stream Toolkit
|
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. | |
Interface class for reactive worker handlers.
This interface shall be implemented by classes which delegate lengthy tasks to worker threads.
|
pure virtual |
Handle the end of a lengthy task which was delegated to a worker thread.
| [in,out] | pool | Worker pool in the context of which the handler is invoked. |
| [in] | error_code | Application-specific error code, as returned by executeWork(), SYS_SUCCESS on success. |
| [in] | user_data | Application-specific shared pointer which was passed to the worker. |