mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
BReferenceable: CountReferences() needs to use atomic_get.
This commit is contained in:
parent
0dfa0e581d
commit
50496cd3da
@ -23,7 +23,7 @@ public:
|
||||
int32 ReleaseReference();
|
||||
|
||||
int32 CountReferences() const
|
||||
{ return fReferenceCount; }
|
||||
{ return atomic_get((int32*)&fReferenceCount); }
|
||||
|
||||
protected:
|
||||
virtual void FirstReferenceAcquired();
|
||||
|
Loading…
Reference in New Issue
Block a user