ADTF
|
Public Member Functions | |
runnable ()=default | |
CTOR. | |
runnable (adtf::base::flash::IRunnable::tRunFunction fcRunOnceFunc) | |
Main CTOR with callable function. More... | |
runnable (ant::IRunnable::tRunFunction fcRunOnceFunc) | |
Compatibility CTOR with callable function. More... | |
~runnable () override=default | |
DTOR. | |
tResult | Run (tTimeStamp tmTimeofActivation, ant::IRunnable::tActivationType ui32ActivationType, const void *pvUserData, size_t nUserDataSize) override |
tResult | Run (tNanoSeconds tmTimeofActivation, ant::IRunnable::tActivationType ui32ActivationType, const void *, size_t) override |
IRunnable::Run implementation which will call m_fcRunOnceFunc if ui32ActivationType is TYPE_OF_ACTIVATION . More... | |
ant::IRunnable::tActivationType | GetActivationType () const override |
Returns the type of activation implemented. More... | |
Public Member Functions inherited from object< ant::IRunnable, ant::IRunnable, IRunnable, IRunnable > | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. More... | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. More... | |
void | Destroy () const override |
Destruct and deallocate instantiations of type IObject . More... | |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Protected Attributes | |
adtf::base::flash::IRunnable::tRunFunction | m_fcRunOnceFunc = nullptr |
given function to call on Run | |
Additional Inherited Members | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Definition at line 115 of file runnable.h.
|
inline |
Main CTOR with callable function.
fcRunOnceFunc | run function |
Definition at line 126 of file runnable.h.
References runnable< TYPE_OF_ACTIVATION, AntInterface, Interface >::m_fcRunOnceFunc.
|
inline |
Compatibility CTOR with callable function.
fcRunOnceFunc | run function |
Definition at line 133 of file runnable.h.
References runnable< TYPE_OF_ACTIVATION, AntInterface, Interface >::m_fcRunOnceFunc.
|
inlineoverride |
Returns the type of activation implemented.
TYPE_OF_ACTIVATION
Definition at line 183 of file runnable.h.
|
inlineoverride |
IRunnable::Run implementation which will call m_fcRunOnceFunc if ui32ActivationType
is TYPE_OF_ACTIVATION
.
ERR_NOT_INITIALIZED | m_fcRunOnceFunc is not set |
The Run method to set the component in running state. This method will be called to activate the component by a given activation type.
[in] | tmTimeofActivation | Time of activation. Usually this is the StreamTime. |
[in] | ui32ActivationType | The activation type for running. |
[in] | pvUserData | pointer to a activation structure depending on the activation type. |
[in] | nUserDataSize | Size of the activation structure. (in byte) |
ERR_CANCELED | Depending on the caller (timer, cyclic thread) it will break cyclic running. |
Definition at line 162 of file runnable.h.
References runnable< TYPE_OF_ACTIVATION, AntInterface, Interface >::m_fcRunOnceFunc, RETURN_ERROR, and IRunnable::RUN_UNSPECIFIED.