Base class for thread-safe reference counting.
More...
#include </home/werner/origo/vish/memcore/DynPtr.hpp>
List of all members.
Public Member Functions
- refcount_t get_pointers () const throw ()
- Return the weak reference count, i.e.
- refcount_t get_refs () const throw ()
- Return the strong reference count, i.e.
Static Public Member Functions
-
static mutex & RefPtrMutex () throw ()
Protected Types
Protected Member Functions
-
ReferenceCount () throw ()
- Initialize reference counts to zero.
-
volatile refcount_t * strong_refcount_ptr () throw ()
-
volatile refcount_t * weak_refcount_ptr () throw ()
Protected Attributes
Detailed Description
Base class for thread-safe reference counting.
- Todo:
- Use a class atomic_count instead of this #ifdef battle here...
Member Function Documentation
refcount_t MemCore::ReferenceCount::get_pointers |
( |
| ) |
const throw () [inline] |
Return the weak reference count, i.e.
how many pointers refer to this object.
refcount_t MemCore::ReferenceCount::get_refs |
( |
| ) |
const throw () [inline] |
Return the strong reference count, i.e.
how many object keep this object alive.
The documentation for this class was generated from the following files:
- memcore/DynPtr.hpp
- memcore/DynPtr.cpp