asDWORD asCAtomic::atomicInc() { return asAtomicInc((int&)value); }
void RefCountedObject::Release() { if(asAtomicInc(refCount) <= 0) delete this; }
void aatc_refcounted_GC::refcount_Add(){ gcFlag = false; asAtomicInc(refCount); }
void RefCountedObject::AddRef() { asAtomicInc(refCount); }