BReferenceable: CountReferences() needs to use atomic_get.

This commit is contained in:
Augustin Cavalier 2024-10-11 10:22:37 -04:00
parent 0dfa0e581d
commit 50496cd3da

View File

@ -23,7 +23,7 @@ public:
int32 ReleaseReference();
int32 CountReferences() const
{ return fReferenceCount; }
{ return atomic_get((int32*)&fReferenceCount); }
protected:
virtual void FirstReferenceAcquired();