ThreadSafePtr< POINTER > Class Template Reference

#include <threadsaferef.h>

Public Member Functions

MAXON_IMPLICIT ThreadSafePtr (POINTER src=nullptr)
 
 ~ThreadSafePtr ()
 
POINTER AcquirePtr () const
 
void ReleasePtr (POINTER ptr) const
 
POINTER ChangePtr (POINTER ptr) const
 
Bool TryCompareAndSwapPtr (POINTER ptr, POINTER compare) const
 
POINTER AttemptAcquirePtr () const
 

Protected Attributes

AtomicUInt _ptr
 

Constructor & Destructor Documentation

◆ ThreadSafePtr()

MAXON_IMPLICIT ThreadSafePtr ( POINTER  src = nullptr)

◆ ~ThreadSafePtr()

THREADSAFE.

Member Function Documentation

◆ AcquirePtr()

POINTER AcquirePtr ( ) const

◆ ReleasePtr()

void ReleasePtr ( POINTER  ptr) const

◆ ChangePtr()

POINTER ChangePtr ( POINTER  ptr) const

◆ TryCompareAndSwapPtr()

Bool TryCompareAndSwapPtr ( POINTER  ptr,
POINTER  compare 
) const

◆ AttemptAcquirePtr()

POINTER AttemptAcquirePtr ( ) const

Member Data Documentation

◆ _ptr

AtomicUInt _ptr
mutableprotected