LLThreadSafeRefCount Class Reference

#include <llthread.h>

Inheritance diagram for LLThreadSafeRefCount:

Inheritance graph
[legend]
Collaboration diagram for LLThreadSafeRefCount:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLThreadSafeRefCount ()
void ref ()
S32 unref ()
S32 getNumRefs () const

Static Public Member Functions

static void initClass ()
static void cleanupClass ()

Protected Member Functions

virtual ~LLThreadSafeRefCount ()

Private Member Functions

 LLThreadSafeRefCount (const LLThreadSafeRefCount &)
LLThreadSafeRefCountoperator= (const LLThreadSafeRefCount &)

Private Attributes

S32 mRef

Static Private Attributes

static LLMutexsMutex = 0


Detailed Description

Definition at line 191 of file llthread.h.


Constructor & Destructor Documentation

LLThreadSafeRefCount::LLThreadSafeRefCount ( const LLThreadSafeRefCount  )  [private]

LLThreadSafeRefCount::~LLThreadSafeRefCount (  )  [protected, virtual]

Definition at line 385 of file llthread.cpp.

References llendl, llerrs, and mRef.

LLThreadSafeRefCount::LLThreadSafeRefCount (  ) 

Definition at line 380 of file llthread.cpp.


Member Function Documentation

void LLThreadSafeRefCount::initClass (  )  [static]

Definition at line 362 of file llthread.cpp.

References sMutex.

Referenced by LLCommon::initClass().

Here is the caller graph for this function:

void LLThreadSafeRefCount::cleanupClass (  )  [static]

Definition at line 371 of file llthread.cpp.

References NULL, and sMutex.

Referenced by LLAppViewer::cleanup(), and LLCommon::cleanupClass().

Here is the caller graph for this function:

LLThreadSafeRefCount& LLThreadSafeRefCount::operator= ( const LLThreadSafeRefCount  )  [private]

void LLThreadSafeRefCount::ref (  )  [inline]

Definition at line 210 of file llthread.h.

S32 LLThreadSafeRefCount::unref (  )  [inline]

Definition at line 217 of file llthread.h.

References llassert, and S32.

S32 LLThreadSafeRefCount::getNumRefs (  )  const [inline]

Definition at line 230 of file llthread.h.


Member Data Documentation

LLMutex * LLThreadSafeRefCount::sMutex = 0 [static, private]

Definition at line 198 of file llthread.h.

Referenced by cleanupClass(), and initClass().

Definition at line 236 of file llthread.h.

Referenced by ~LLThreadSafeRefCount().


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

Generated on Fri May 16 09:15:32 2008 for SecondLife by  doxygen 1.5.5