29template<
typename TriggerFunctionImpl,
bool CYCLIC_THREAD=true>
35 typedef triggered_filter < TriggerFunctionImpl >
base_type;
43 ADTF3_DEPRECATED(
"Class 'thread_triggered_filter' is deprecated, as well as macro 'ADTF_THREAD_TRIGGERED_FILTER'."
44 "Use class 'filter_with_trigger_function' or macros 'ADTF_TRIGGER_FUNCTION_FILTER' / 'ADTF_TRIGGER_FUNCTION_FILTER_PLUGIN' instead.")
55 tResult CreateDefaultTrigger(
const char* strFunctionName)
override
58 bool bCyclic = CYCLIC_THREAD;
70template<
typename FilterClass>
71tResult thread_trigger(FilterClass& oFilter,
bool bCyclic)
73 return oFilter.ConfigureThreadTrigger(oFilter.GetTriggerFunctionName(),
84 return std::bind(detail::thread_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, bCyclic);
94 return std::bind(detail::thread_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, bCyclic);
101using hollow::thread_trigger;
119#define ADTF_THREAD_TRIGGERED_FILTER_NAME(_class_identifier_, \
121 _threadtriggerfilterclass_,\
125 ADTF_TRIGGERED_FILTER_NAME(_class_identifier_,\
127 _threadtriggerfilterclass_,\
129 adtf::filter::thread_trigger(_thread_cyclic_))
143#define ADTF_THREAD_TRIGGERED_FILTER(_class_identifier_, \
144 _threadtriggerfilterclass_,\
147 ADTF_THREAD_TRIGGERED_FILTER_NAME(_class_identifier_,\
149 _threadtriggerfilterclass_,\
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
Definition result.h:29
tResult ConfigureThreadTrigger(const char *strRunnerName, bool bCallCyclic)
Definition thread_triggered_filter.h:31
triggered_filter< TriggerFunctionImpl > base_type
base type of thread_triggered_filter
Definition thread_triggered_filter.h:35
~thread_triggered_filter()
DTOR.
Definition thread_triggered_filter.h:50
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()
Definition thread_triggered_filter.h:43
Definition triggered_filter.h:90
Definition triggered_filter.h:270
Namespace for the ADTF Base SDK.
Definition adtf_base_type_traits.h:13
Namespace for all functionality of the ADTF Filter SDK provided since v3.0.
Definition filter.h:26
Namespace for all functionality of the ADTF Filter SDK provided since v3.3.
Definition data_triggered_filter.h:86
Namespace for all functionality of the ADTF Filter SDK provided since v3.7.
Definition data_triggered_filter.h:96
Namespace for the ADTF Filter SDK.
Definition configurable_runner.h:18
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14