*/
/*=============================================================================
CAReferenceCounted.h
-
+
=============================================================================*/
#ifndef __CAReferenceCounted_h__
class CAReferenceCounted {
public:
CAReferenceCounted() : mRefCount(1) {}
-
+
void retain() { IncrementAtomic(&mRefCount); }
-
+
void release()
{
// this returns the ORIGINAL value, not the new one.