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