LLWatchdog Class Reference

#include <llwatchdog.h>

Inheritance diagram for LLWatchdog:

Inheritance graph
[legend]
Collaboration diagram for LLWatchdog:

Collaboration graph
[legend]

List of all members.

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
LLMutexmSuspectsAccessMutex
LLWatchdogTimerThreadmTimer


Detailed Description

Definition at line 74 of file llwatchdog.h.


Member Typedef Documentation

typedef std::set<LLWatchdogEntry*> LLWatchdog::SuspectsRegistry [private]

Definition at line 89 of file llwatchdog.h.


Constructor & Destructor Documentation

LLWatchdog::LLWatchdog (  ) 

Definition at line 130 of file llwatchdog.cpp.

LLWatchdog::~LLWatchdog (  ) 

Definition at line 136 of file llwatchdog.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLWatchdog::cleanup (  ) 

Definition at line 162 of file llwatchdog.cpp.

References mSuspectsAccessMutex, mTimer, and LLWatchdogTimerThread::stop().

Referenced by LLAppViewer::cleanup().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 90 of file llwatchdog.h.

Referenced by add(), remove(), and run().

Definition at line 91 of file llwatchdog.h.

Referenced by add(), cleanup(), init(), remove(), and run().

Definition at line 92 of file llwatchdog.h.

Referenced by cleanup(), init(), and run().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:38:52 2008 for SecondLife by  doxygen 1.5.5