28 template<
typename ...Args>
34 template<
typename ...Args>
36 const char* strName, Args&&... args): cLooper(std::forward<Args>(args)...)
43 cLooper(
static_cast<cLooper&&
>(oOther))
50 cLooper::Swap(oOther);
67 using tLoopState = adtf_util::cLooper::tLoopState;
87 tLoopState eInitialState = tLoopState::Running);
A common result class usable as return value throughout.
The Kernel Thread Loop class provides a thread that repeatedly calls the LoopFunc method.
virtual ~cKernelThreadLoop()
Destructor.
tResult Create(const char *strName, const adtf::services::IKernel::tSchedulingInfo &sScheduling=adtf::services::IKernel::tSchedulingInfo(), bool bSelfDestruct=false, tLoopState eInitialState=tLoopState::Running)
Creates the thread that executes the LoopFunc method.
virtual tResult LoopFunc()=0
Implement this method.
tResult Release()
Destroys the thread.
tResult SetState(tLoopState eState, bool bWaitForAck=true)
Changes the state of the internal looper.
tLoopState GetState()
Retrieves the current state of the looper.
Convenience class that combines the functionality of a kernel_thread and an A_UTILS_NS::cLooper.
Class that manages a kernel thread.
void Swap(kernel_thread &oOther)
Swaps two threads.
kernel_thread()
Default constructor.
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.
Struct for defining scheduling settings of a thread or timer.