UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
THazardPointer< H, Cached > Class Template Reference

#include <HazardPointer.h>

Public Member Functions

 THazardPointer (THazardPointer &&Other)
 
THazardPointeroperator= (THazardPointer &&Other)
 
 THazardPointer ()=default
 
 THazardPointer (std::atomic< H * > &InHazard, FHazardPointerCollection &Collection)
 
 ~THazardPointer ()
 
void Retire ()
 
void Destroy ()
 
H * Get () const
 
bool IsValid ()
 

Detailed Description

template<typename H, bool Cached = false>
class THazardPointer< H, Cached >

THazardPointer is used to keep an allocation alive until all threads that referenced it finished their access

Constructor & Destructor Documentation

◆ THazardPointer() [1/3]

template<typename H , bool Cached = false>
THazardPointer< H, Cached >::THazardPointer ( THazardPointer< H, Cached > &&  Other)
inline

◆ THazardPointer() [2/3]

template<typename H , bool Cached = false>
THazardPointer< H, Cached >::THazardPointer ( )
default

◆ THazardPointer() [3/3]

template<typename H , bool Cached = false>
THazardPointer< H, Cached >::THazardPointer ( std::atomic< H * > &  InHazard,
FHazardPointerCollection Collection 
)
inline

◆ ~THazardPointer()

template<typename H , bool Cached = false>
THazardPointer< H, Cached >::~THazardPointer ( )
inline

Member Function Documentation

◆ Destroy()

template<typename H , bool Cached = false>
void THazardPointer< H, Cached >::Destroy ( )
inline

◆ Get()

template<typename H , bool Cached = false>
H * THazardPointer< H, Cached >::Get ( ) const
inline

◆ IsValid()

template<typename H , bool Cached = false>
bool THazardPointer< H, Cached >::IsValid ( )
inline

◆ operator=()

template<typename H , bool Cached = false>
THazardPointer & THazardPointer< H, Cached >::operator= ( THazardPointer< H, Cached > &&  Other)
inline

◆ Retire()

template<typename H , bool Cached = false>
void THazardPointer< H, Cached >::Retire ( )
inline

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