#include <watchdog.h>
Public Member Functions | |
bool | kick () |
bool | set (double interval) |
WatchdogThread () | |
WatchdogThread (double interval) | |
virtual | ~WatchdogThread () |
Protected Member Functions | |
virtual void | bark () |
virtual void | watch () |
Protected Attributes | |
double | interval_ |
bool | kicked_ |
pthread_mutex_t | mutex_ |
bool | set_ |
pthread_t | thread_ |
Static Private Member Functions | |
static void * | watchDelegate (void *obj) |
Definition at line 6 of file watchdog.h.
WatchdogThread::WatchdogThread | ( | ) | [inline] |
Definition at line 15 of file watchdog.h.
WatchdogThread::WatchdogThread | ( | double | interval | ) | [inline] |
Definition at line 16 of file watchdog.h.
WatchdogThread::~WatchdogThread | ( | ) | [virtual] |
Definition at line 15 of file watchdog.cpp.
void WatchdogThread::bark | ( | ) | [protected, virtual] |
Definition at line 61 of file watchdog.cpp.
bool WatchdogThread::kick | ( | ) |
Definition at line 49 of file watchdog.cpp.
bool WatchdogThread::set | ( | double | interval | ) |
Definition at line 4 of file watchdog.cpp.
void WatchdogThread::watch | ( | ) | [protected, virtual] |
Definition at line 32 of file watchdog.cpp.
void * WatchdogThread::watchDelegate | ( | void * | obj | ) | [static, private] |
Definition at line 25 of file watchdog.cpp.
double WatchdogThread::interval_ [protected] |
Definition at line 11 of file watchdog.h.
bool WatchdogThread::kicked_ [protected] |
Definition at line 12 of file watchdog.h.
pthread_mutex_t WatchdogThread::mutex_ [protected] |
Definition at line 10 of file watchdog.h.
bool WatchdogThread::set_ [protected] |
Definition at line 12 of file watchdog.h.
pthread_t WatchdogThread::thread_ [protected] |
Definition at line 9 of file watchdog.h.