|
ADTF
|
#include <runnable.h>
Inherits adtf::ucom::catwo::object< Bases >.
Public Member Functions | |
| runnable ()=delete | |
| CTOR. | |
| runnable (CALLABLE &&fcRunFunc) noexcept | |
| template<typename CALLABLE_WITH_TIMSTAMP, typename CALLABLE_TYPE = CALLABLE, std::enable_if_t< std::is_same_v< std::decay_t< CALLABLE_TYPE >, flash::IRunnable::tRunFunction > &&std::is_invocable_r_v< tResult, std::decay_t< CALLABLE_WITH_TIMSTAMP >, tTimeStamp >, bool > = true> | |
| runnable (CALLABLE_WITH_TIMSTAMP &&fcRunFunc) noexcept | |
| runnable (CALLABLE &&fcRunFunc, ant::IRunnable::tActivationType ui32ActivationType) noexcept | |
| ~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 *pvUserData, size_t nUserDataSize) override |
| ant::IRunnable::tActivationType | GetActivationType () const override |
Public Member Functions inherited from adtf::ucom::catwo::object< Bases > | |
| tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
| Query interfaces on an object. | |
| tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
| Provides const correct interface querying. | |
| void | Destroy () const override |
| Switch from non-virtual destructor to virtual destructor. | |
Public Member Functions inherited from adtf::ucom::ant::IObject | |
| ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Protected Attributes | |
| std::decay_t< CALLABLE > | m_fcRunFunc |
| given function to call on Run | |
Additional Inherited Members | |
Protected Member Functions inherited from adtf::ucom::ant::IObject | |
| ~IObject ()=default | |
| Protected destructor --> Only the final implementation can be destroyed! | |
Runnable template implementation for runnable interface. The given callable can have one of the following signatures:
| DEFAULT_ACTIVATION_TYPE | The default activation type for the runnable, which will be used if not specified within CTOR. |
| ANT_INTERFACE | The ant::IRunnable interface to expose, ant::IRunnable or any derived type. |
| FLASH_INTERFACE | The flash::IRunnable interface to expose, flash::IRunnable or any derived type. |
| CALLABLE | The type of the callable to be executed on Run, must be invocable with either of the defined signatures |
|
inlinenoexcept |
CTOR with callable and default activation type
| fcRunFunc | callable function object with expected signature. |
|
inlinenoexcept |
Legacy CTOR with default callable of type flash::IRunnable::tRunFunction and used callable type with signature: tResult(tTimeStamp). This CTOR is required for backward compatibility.
| CALLABLE_WITH_TIMSTAMP | The type of callable given in CTOR that might fit the legacy signature. |
| CALLABLE_TYPE | The type of used storage type within this runnable. |
| fcRunFunc | callable function object with expected signature. |
|
inlinenoexcept |
CTOR with callable and activation type to set the activation type of this runnable.
| fcRunFunc | callable function object with expected signature. |
| ui32ActivationType | activation type to set at runtime |
|
inlineoverride |
Returns the type of activation
|
inlineoverride |
IRunnable::Run implementation which will call m_fcRunFunc if ui32ActivationType is equal to m_ui32ActivationType. If m_ui32ActivationType is set to RUN_UNSPECIFIED the call will be always forwarded.
| [in] | tmTimeofActivation | Time of activation. Usually this is the StreamTime. |
| [in] | ui32ActivationType | The activation type of the runnable. |
| [in] | pvUserData | Pointer to user data. |
| [in] | nUserDataSize | Size of the user data. |
m_fcRunFunc call.
|
inlineoverride |
IRunnable::Run implementation which will call m_fcRunFunc if ui32ActivationType is equal to m_ui32ActivationType. If m_ui32ActivationType is set to RUN_UNSPECIFIED the call will be always forwarded.
| [in] | tmTimeofActivation | Time of activation. Usually this is the StreamTime. |
| [in] | ui32ActivationType | The activation type of the runnable. |
| [in] | pvUserData | Pointer to user data. |
| [in] | nUserDataSize | Size of the user data. |
m_fcRunFunc call.