AudioManager  7.6.6
Native Application Runtime Environment
CAmWatchdog.h
Go to the documentation of this file.
1 
24 #ifndef CAMWATCHDOG_H_
25 #define CAMWATCHDOG_H_
26 
27 #include "CAmSocketHandler.h"
28 
29 namespace am
30 {
31 
36 {
37 public:
39  virtual ~CAmWatchdog();
40  void startWatchdog();
41  void timerCallback(sh_timerHandle_t handle, void * userData);
43 
44 private:
45  CAmSocketHandler* mpCAmSocketHandler;
46  sh_timerHandle_t mHandle;
47 };
48 
49 } /* namespace am */
50 #endif /* CAMWATCHDOG_H_ */
A Common-API wrapper class, which loads the common-api runtime and instantiates all necessary objects...
The am::CAmSocketHandler implements a mainloop for the AudioManager.
Implements the watchdog of the AudioManager with the help of systemd.
Definition: CAmWatchdog.h:35
virtual ~CAmWatchdog()
Definition: CAmWatchdog.cpp:75
CAmWatchdog(CAmSocketHandler *CAmSocketHandler)
Definition: CAmWatchdog.cpp:35
void startWatchdog()
starts the watchdog by sending ready to systemD
Definition: CAmWatchdog.cpp:95
SPDX license identifier: MPL-2.0.
TAmShTimerCallBack< CAmWatchdog > TimerCallback
Definition: CAmWatchdog.h:42
void timerCallback(sh_timerHandle_t handle, void *userData)
the watchdog timer callback
Definition: CAmWatchdog.cpp:82
sh_pollHandle_t sh_timerHandle_t
this is a handle for a timer to be used with the SocketHandler
template to create the functor for a class