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 = P6R::p6AtomicInc32(&m_cRef.value); \
P6R::p6TraceAddref((const P6R::P6CHAR*)#classname,sizeof(*this),this,tmp,NULL); \
return tmp; \
} \
P6API P6INT32 P6CCALL p6AtomicInc32(P6INT32 volatile *pVar)
Atomically increments the variable pointed to by pVar by one.
int32_t P6INT32
Definition: p6types.h:76
char P6CHAR
Narrow character type.
Definition: p6types.h:105

Definition at line 91 of file p6comhlpr.h.