7 #ifndef MSynch_ReferenceCountedImpl_h 8 #define MSynch_ReferenceCountedImpl_h 15 #pragma warning(disable:4250) // 'class1' : inherits 'class2::member' via dominance 43 template<
class T = AtomicLong >
60 _ASSERTE(mnReferenceCounter > 0 && mnReferenceCounter < 100000);
67 _ASSERTE(mnReferenceCounter > 0 && mnReferenceCounter < 100000);
69 if (mnReferenceCounter == 1)
80 if (--mnReferenceCounter == 0)
97 return mnReferenceCounter;
101 mutable T mnReferenceCounter;
105 #endif // MSynch_ReferenceCountedImpl_h ReferenceCountedImpl()
Definition: ReferenceCountedImpl.h:50
const T & GetReferenceCount() const
Definition: ReferenceCountedImpl.h:95
#define _ASSERTE(x)
Definition: Asserte.h:40
Definition: ReferenceCountedImpl.h:18
virtual void ReferenceCountIsAboutToReachZero() const
Definition: ReferenceCountedImpl.h:91
virtual void AddRef() const
Definition: ReferenceCountedImpl.h:56
Definition: ReferenceCountedImpl.h:44
virtual void Release() const
Definition: ReferenceCountedImpl.h:64
Definition: ReferenceCounted.h:58