Navigation
API > API/Runtime > API/Runtime/Chaos
Chaos ref-counted object
In AutoRTFM, the return value of AddRef/Release may be higher than expected, because the refcount won't decrease until the transaction is committed. This is fine for use with TRefCountPtr, as it doesn't use the refcount directly.
| Name | FChaosRefCountedObject |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/RefCountedObject.h |
| Include Path | #include "Chaos/RefCountedObject.h" |
Syntax
class FChaosRefCountedObject
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Chaos/RefCountedObject.h | |||
FChaosRefCountedObject
(
const FChaosRefCountedObject& Rhs |
Chaos/RefCountedObject.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FChaosRefCountedObject() |
Chaos/RefCountedObject.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NumRefs | std::atomic< int32 > | Number of refs onto the object. | Chaos/RefCountedObject.h | |
| RefCountMode | std::atomic< ERCM_RefCountMode > | Chaos/RefCountedObject.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 AddRef() |
Chaos/RefCountedObject.h | ||
uint32 GetRefCount() |
Chaos/RefCountedObject.h | ||
void MakePersistent() |
Chaos/RefCountedObject.h | ||
uint32 Release() |
Chaos/RefCountedObject.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FChaosRefCountedObject & operator=
(
const FChaosRefCountedObject& Rhs |
Chaos/RefCountedObject.h |