20 #ifndef INCLUDE_OLA_UTIL_WATCHDOG_H_
21 #define INCLUDE_OLA_UTIL_WATCHDOG_H_
24 #include <ola/thread/Mutex.h>
106 const unsigned int m_limit;
107 std::auto_ptr<Callback0<void> > m_callback;
110 unsigned int m_count;
114 #endif // INCLUDE_OLA_UTIL_WATCHDOG_H_
Watchdog(unsigned int cycle_limit, Callback0< void > *reset_callback)
Create a new Watchdog.
Definition: Watchdog.cpp:26
void Clock()
Check if the process has stalled due to a lack of Kick() calls.
Definition: Watchdog.cpp:52
void Disable()
Disable the watchdog.
Definition: Watchdog.cpp:41
void Enable()
Enable the watchdog.
Definition: Watchdog.cpp:34
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
void Kick()
Kick the watchdog to avoid a reset.
Definition: Watchdog.cpp:47
Detects if an operation stalls.
Definition: Watchdog.h:70