Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCRefCountAccessorTmpl< MCThreadModel::THRMODELSINGLE > Class Template Reference

Specialization of MCRefCountAccessorTmpl which increments and decrements the reference count in a thread unsafe manner. More...

#include <mcllib/MCRefCountAccessor.h>

Inheritance diagram for MCRefCountAccessorTmpl< MCThreadModel::THRMODELSINGLE >:

MCRefCountAccessorBase List of all members.

Public Member Functions

mcatomic_t decCnt (MCRefCount *pCtr) const
 Decrement the ref count for the specified object and return new count.
mcatomic_t incCnt (MCRefCount *pCtr) const
 Increment the ref count for the specified object and return new count.

Detailed Description

template<>
class mcllib::MCRefCountAccessorTmpl< MCThreadModel::THRMODELSINGLE >

Specialization of MCRefCountAccessorTmpl which increments and decrements the reference count in a thread unsafe manner.

This is useful if the reference counted objects do not need to be passed between threads. This is much more efficient (10-15 times faster) than using the thread safe model, where thread safety is not a concern, but reference counting is still required.


Generated on Wed Jan 12 19:05:49 2005 for MCLLIB by  doxygen 1.3.9.1