Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FThreadSafeRefCountedObject Class Reference

#include <RefCounting.h>

+ Inheritance diagram for FThreadSafeRefCountedObject:
+ Collaboration diagram for FThreadSafeRefCountedObject:

Public Member Functions

 FThreadSafeRefCountedObject ()
 
virtual ~FThreadSafeRefCountedObject ()
 
 FThreadSafeRefCountedObject (const FThreadSafeRefCountedObject &Rhs)=delete
 
FThreadSafeRefCountedObjectoperator= (const FThreadSafeRefCountedObject &Rhs)=delete
 
uint32 AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 

Private Attributes

FThreadSafeCounter NumRefs
 

Detailed Description

Like FRefCountedObject, but internal ref count is thread safe

Definition at line 109 of file RefCounting.h.

Constructor & Destructor Documentation

◆ FThreadSafeRefCountedObject() [1/2]

FThreadSafeRefCountedObject::FThreadSafeRefCountedObject ( )
inline

Definition at line 112 of file RefCounting.h.

+ Here is the call graph for this function:

◆ ~FThreadSafeRefCountedObject()

virtual FThreadSafeRefCountedObject::~FThreadSafeRefCountedObject ( )
inlinevirtual

Definition at line 113 of file RefCounting.h.

◆ FThreadSafeRefCountedObject() [2/2]

FThreadSafeRefCountedObject::FThreadSafeRefCountedObject ( const FThreadSafeRefCountedObject & Rhs)
delete

Member Function Documentation

◆ AddRef()

uint32 FThreadSafeRefCountedObject::AddRef ( ) const
inline

Definition at line 116 of file RefCounting.h.

+ Here is the call graph for this function:

◆ GetRefCount()

uint32 FThreadSafeRefCountedObject::GetRefCount ( ) const
inline

Definition at line 129 of file RefCounting.h.

+ Here is the call graph for this function:

◆ operator=()

FThreadSafeRefCountedObject & FThreadSafeRefCountedObject::operator= ( const FThreadSafeRefCountedObject & Rhs)
delete

◆ Release()

uint32 FThreadSafeRefCountedObject::Release ( ) const
inline

Definition at line 120 of file RefCounting.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ NumRefs

FThreadSafeCounter FThreadSafeRefCountedObject::NumRefs
mutableprivate

Definition at line 134 of file RefCounting.h.


The documentation for this class was generated from the following file: