29 template<
typename TriggerFunctionImpl,
bool CYCLIC_THREAD=true>
40 ADTF3_DEPRECATED(
"Class 'thread_triggered_filter' is deprecated, as well as macro 'ADTF_THREAD_TRIGGERED_FILTER'."
41 "Use class 'filter_with_trigger_function' or macros 'ADTF_TRIGGER_FUNCTION_FILTER' / 'ADTF_TRIGGER_FUNCTION_FILTER_PLUGIN' instead.")
52 tResult CreateDefaultTrigger(
const char* strFunctionName)
override
55 bool bCyclic = CYCLIC_THREAD;
67 template<
typename FilterClass>
68 tResult thread_trigger(FilterClass& oFilter,
bool bCyclic)
70 return oFilter.ConfigureThreadTrigger(oFilter.GetTriggerFunctionName(),
79 inline std::function<
tResult(cFilterWithTriggerFunction&)> thread_trigger(
bool bCyclic)
81 return std::bind(detail::thread_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, bCyclic);
89 inline std::function<
tResult(cFilterWithTriggerFunction&)> thread_trigger(
bool bCyclic)
91 return std::bind(detail::thread_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, bCyclic);
97 using ant::thread_triggered_filter;
98 using hollow::thread_trigger;
116 #define ADTF_THREAD_TRIGGERED_FILTER_NAME(_class_identifier_, \
118 _threadtriggerfilterclass_,\
122 ADTF_TRIGGERED_FILTER_NAME(_class_identifier_,\
124 _threadtriggerfilterclass_,\
126 adtf::filter::thread_trigger(_thread_cyclic_))
140 #define ADTF_THREAD_TRIGGERED_FILTER(_class_identifier_, \
141 _threadtriggerfilterclass_,\
144 ADTF_THREAD_TRIGGERED_FILTER_NAME(_class_identifier_,\
146 _threadtriggerfilterclass_,\
Copyright © Audi Electronics Venture GmbH.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
tResult ConfigureThreadTrigger(const char *strRunnerName, bool bCallCyclic)
Creates an internal a internal thread configuration for a timing trigger.
triggered_filter< TriggerFunctionImpl > base_type
base type of thread_triggered_filter
ADTF3_DEPRECATED("Class 'thread_triggered_filter' is deprecated, as well as macro 'ADTF_THREAD_TRIGGERED_FILTER'." "Use class 'filter_with_trigger_function' or macros 'ADTF_TRIGGER_FUNCTION_FILTER' / 'ADTF_TRIGGER_FUNCTION_FILTER_PLUGIN' instead.") thread_triggered_filter()
CTOR.
~thread_triggered_filter()
DTOR.
Simple Filter for Registering One Triggerfunction to a filter.
Namespace for the ADTF Base SDK.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.