Navigation
API > API/Runtime > API/Runtime/Core
Like FRefCountedObject, but the reference count is thread-safe.
| Name | FThreadSafeRefCountedObject |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/RefCounting.h |
| Include Path | #include "Templates/RefCounting.h" |
Syntax
class FThreadSafeRefCountedObject : private UE::Private::TTransactionalAtomicRefCount< uint32 >
Inheritance Hierarchy
- TTransactionalAtomicRefCount → FThreadSafeRefCountedObject
Derived Classes
FThreadSafeRefCountedObject derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Templates/RefCounting.h | |||
FThreadSafeRefCountedObject
(
const FThreadSafeRefCountedObject& Rhs |
Templates/RefCounting.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FThreadSafeRefCountedObject() |
Templates/RefCounting.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | UE::Private::TTransactionalAtomicRefCount< uint32 > | Templates/RefCounting.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FReturnedRefCountValue AddRef() |
Templates/RefCounting.h | ||
uint32 GetRefCount() |
Templates/RefCounting.h | ||
uint32 Release() |
Templates/RefCounting.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void DeleteThis
(
const Super* This |
Templates/RefCounting.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FThreadSafeRefCountedObject & operator=
(
const FThreadSafeRefCountedObject& Rhs |
Templates/RefCounting.h |