68 if (--NumRefs == 0 && RefCountMode == ERCM_Transient)
82 Ret =
uint32(NumRefs.load());
93 RefCountMode = ERCM_Persistent;
103 mutable std::atomic<int32> NumRefs = 0;
105 enum ERCM_RefCountMode {
114 mutable std::atomic<ERCM_RefCountMode> RefCountMode = ERCM_Transient;
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition RefCountedObject.h:15
uint32 Release() const
Definition RefCountedObject.h:64
FChaosRefCountedObject()
Definition RefCountedObject.h:17
FChaosRefCountedObject(const FChaosRefCountedObject &Rhs)=delete
void MakePersistent() const
Definition RefCountedObject.h:87
uint32 AddRef() const
Definition RefCountedObject.h:37
virtual ~FChaosRefCountedObject()
Definition RefCountedObject.h:18
FChaosRefCountedObject & operator=(const FChaosRefCountedObject &Rhs)=delete
uint32 GetRefCount() const
Definition RefCountedObject.h:77
Definition SkeletalMeshComponent.h:307