#include <llwatchdog.h>
Public Member Functions | |
LLWatchdog () | |
~LLWatchdog () | |
void | add (LLWatchdogEntry *e) |
void | remove (LLWatchdogEntry *e) |
void | init () |
void | run () |
void | cleanup () |
Private Types | |
typedef std::set < LLWatchdogEntry * > | SuspectsRegistry |
Private Attributes | |
SuspectsRegistry | mSuspects |
LLMutex * | mSuspectsAccessMutex |
LLWatchdogTimerThread * | mTimer |
Definition at line 74 of file llwatchdog.h.
typedef std::set<LLWatchdogEntry*> LLWatchdog::SuspectsRegistry [private] |
Definition at line 89 of file llwatchdog.h.
LLWatchdog::LLWatchdog | ( | ) |
Definition at line 130 of file llwatchdog.cpp.
LLWatchdog::~LLWatchdog | ( | ) |
Definition at line 136 of file llwatchdog.cpp.
void LLWatchdog::add | ( | LLWatchdogEntry * | e | ) |
Definition at line 140 of file llwatchdog.cpp.
References LLMutex::lock(), mSuspects, mSuspectsAccessMutex, and LLMutex::unlock().
Referenced by LLWatchdogEntry::start().
void LLWatchdog::remove | ( | LLWatchdogEntry * | e | ) |
Definition at line 147 of file llwatchdog.cpp.
References LLMutex::lock(), mSuspects, mSuspectsAccessMutex, and LLMutex::unlock().
Referenced by LLWatchdogEntry::stop().
void LLWatchdog::init | ( | void | ) |
Definition at line 154 of file llwatchdog.cpp.
References mSuspectsAccessMutex, mTimer, NULL, LLWatchdogTimerThread::setSleepTime(), and LLThread::start().
Referenced by LLAppViewer::initThreads().
void LLWatchdog::run | ( | void | ) |
Definition at line 169 of file llwatchdog.cpp.
References LLWatchdogEntry::isAlive(), llendl, llinfos, LLMutex::lock(), mSuspects, mSuspectsAccessMutex, mTimer, LLWatchdogTimerThread::stop(), and LLMutex::unlock().
Referenced by LLWatchdogTimerThread::run().
void LLWatchdog::cleanup | ( | ) |
Definition at line 162 of file llwatchdog.cpp.
References mSuspectsAccessMutex, mTimer, and LLWatchdogTimerThread::stop().
Referenced by LLAppViewer::cleanup().
SuspectsRegistry LLWatchdog::mSuspects [private] |
LLMutex* LLWatchdog::mSuspectsAccessMutex [private] |
LLWatchdogTimerThread* LLWatchdog::mTimer [private] |