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

MCRefCountAccessorTmpl< MCThreadModel::THRMODELMULTI > Class Template Reference

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

#include <mcllib/MCRefCountAccessor.h>

Inheritance diagram for MCRefCountAccessorTmpl< MCThreadModel::THRMODELMULTI >:

MCRefCountAccessorBase MCRefCountGetter 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::THRMODELMULTI >

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

This is useful if the reference counted objects need to be passed between threads. This implementation is about 10-15 times slower than the unsafe model.


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