|
ADTF
|
#include <runner_fallback.h>
Public Member Functions | |
| cRunnerFallback () | |
| cRunnerFallback (streaming::ant::INamedGraphObject *pGraphObject, const char *strRunnerName, const cGraphObject::cTriggerHint &oTriggerHint, std::function< void()> fnCallback) | |
| cRunnerFallback (cRunnerFallback &&) | |
| cRunnerFallback (const cRunnerFallback &)=delete | |
| ~cRunnerFallback () | |
| cRunnerFallback & | operator= (cRunnerFallback &&) |
| cRunnerFallback & | operator= (const cRunnerFallback &)=delete |
| tResult | Activate (tTimeStamp tmPeriod=0) |
| void | Deactivate () |
This class is used to provide a fallback kernel thread/timer for a runner of a streaming service.
Do not use this class in new filter implementations and just create a runner instead. This exists only for session compatibililty of our example streaming sinks and sources.
| adtf::filter::riddler::cRunnerFallback::cRunnerFallback | ( | ) |
Constructs an empty fallback.
| adtf::filter::riddler::cRunnerFallback::cRunnerFallback | ( | streaming::ant::INamedGraphObject * | pGraphObject, |
| const char * | strRunnerName, | ||
| const cGraphObject::cTriggerHint & | oTriggerHint, | ||
| std::function< void()> | fnCallback ) |
This will create a runner with the given name at the graph object.
| [in] | pGraphObject | The graph object that the runner should belong to. |
| [in] | strRunnerName | The name of the runner. |
| [in] | fnCallback | The callback that should be called upon triggers. |
| adtf::filter::riddler::cRunnerFallback::~cRunnerFallback | ( | ) |
Destructor
| tResult adtf::filter::riddler::cRunnerFallback::Activate | ( | tTimeStamp | tmPeriod = 0 | ) |
This activates the calling of the callback, either by a connected Active Runner or by creating a kernel thread/timer on its own.
| [in] | tmPeriod | If no Active Runner is connected and this is not zero, a kernel timer with the given period will be created. |
| void adtf::filter::riddler::cRunnerFallback::Deactivate | ( | ) |
Prevents future calls to the callback, after the function returns.