Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
#define P6_IMPLEMENT_THREADSAFE_ADDREF (   classname)
Value:
P6R::P6INT32 classname::addref() { \
P6R::P6INT32 tmp = p6AtomicInc32(&m_cRef.value); \
p6TraceAddref(#classname,sizeof(*this),this,tmp,NULL); \
return tmp; \
} \
int P6INT32
Definition: p6types.h:41
P6API P6R::P6INT32 p6AtomicInc32(P6R::P6INT32 volatile *pVar)
Atomically increments the variable pointed to by pVar by one.

Definition at line 88 of file p6comhlpr.h.