LLThreadSafeRefCount Class Reference

#include <llthread.h>

Inheritance diagram for LLThreadSafeRefCount:

Inheritance graph
Collaboration diagram for LLThreadSafeRefCount:

Collaboration graph
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 378 of file llthread.cpp.

References llendl, llerrs, and mRef.

LLThreadSafeRefCount::LLThreadSafeRefCount (  ) 

Definition at line 373 of file llthread.cpp.

Member Function Documentation

void LLThreadSafeRefCount::cleanupClass (  )  [static]

Reimplemented in LLWorldMapView.

Definition at line 364 of file llthread.cpp.

References NULL, and sMutex.

Referenced by cleanup_app(), and LLCommon::cleanupClass().

S32 LLThreadSafeRefCount::getNumRefs (  )  const [inline]

Definition at line 230 of file llthread.h.

References mRef.

Referenced by LLVolumeMgr::cleanupVolume(), and operator<<().

void LLThreadSafeRefCount::initClass (  )  [static]

Reimplemented in LLWorldMapView.

Definition at line 355 of file llthread.cpp.

References sMutex.

Referenced by LLCommon::initClass().

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

void LLThreadSafeRefCount::ref (  )  [inline]

Definition at line 210 of file llthread.h.

References LLMutex::lock(), mRef, sMutex, and LLMutex::unlock().

Referenced by LLVolumeMgr::getVolume().

S32 LLThreadSafeRefCount::unref (  )  [inline]

Definition at line 217 of file llthread.h.

References llassert, LLMutex::lock(), mRef, S32, sMutex, and LLMutex::unlock().

Referenced by LLVolumeMgr::cleanupVolume().

Member Data Documentation

S32 LLThreadSafeRefCount::mRef [private]

Definition at line 236 of file llthread.h.

Referenced by getNumRefs(), ref(), unref(), and ~LLThreadSafeRefCount().

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

Definition at line 198 of file llthread.h.

Referenced by cleanupClass(), initClass(), ref(), and unref().

The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:51 2010 for Second Life Viewer by  doxygen 1.4.7