Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
#define P6_IMPLEMENT_THREADSAFE_RELEASE (   classname)
Value:
P6R::P6INT32 classname::release() { \
P6ASSERT(0 != m_cRef.value); \
P6R::P6INT32 tmp = p6AtomicDec32(&m_cRef.value); \
p6TraceRelease(#classname,this,tmp,NULL); \
if(0 == tmp) { delete this; } \
return tmp; \
}
#define P6ASSERT(x)
P6ASSERT is not supported in RGX.
Definition: p6loader.h:22
int P6INT32
Definition: p6types.h:41
P6API P6R::P6INT32 p6AtomicDec32(P6R::P6INT32 volatile *pVar)
Atomically decrements the variable pointed to by pVar by one.

Definition at line 95 of file p6comhlpr.h.