ARC SDK
|
This class is meant to be used in code which provides "I'm alive" ticks to watchdog. More...
#include <arc/Watchdog.h>
Public Member Functions | |
WatchdogChannel (int timeout) | |
Defines watchdog kicking source with specified timeout. More... | |
~WatchdogChannel (void) | |
Upon destruction channel is closed and watchdog forgets about it. More... | |
void | Kick (void) |
Tells watchdog this source is still alive. More... | |
This class is meant to be used in code which provides "I'm alive" ticks to watchdog.
Arc::WatchdogChannel::WatchdogChannel | ( | int | timeout | ) |
Defines watchdog kicking source with specified timeout.
Code must call Kick() method of this instance to keep watchdog from timeouting. If object is destroyed watchdog does not monitor it anymore. Althogh timeout is specified in seconds real time resolution of watchdog is about 1 minute.
Arc::WatchdogChannel::~WatchdogChannel | ( | void | ) |
Upon destruction channel is closed and watchdog forgets about it.
void Arc::WatchdogChannel::Kick | ( | void | ) |
Tells watchdog this source is still alive.