ThreadSafePtr< POINTER > Class Template Reference Data Structures
#include <threadsaferef.h>
公共成员函数 |
|
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 |
MAXON_IMPLICIT ThreadSafePtr | ( | POINTER |
src
=
nullptr
|
) |
~ ThreadSafePtr | ( | ) |
THREADSAFE.
POINTER AcquirePtr | ( | ) | const |
void ReleasePtr | ( | POINTER | ptr | ) | const |
POINTER ChangePtr | ( | POINTER | ptr | ) | const |
Bool TryCompareAndSwapPtr | ( | POINTER | ptr , |
POINTER | compare | ||
) | const |
POINTER AttemptAcquirePtr | ( | ) | const |
|
mutable protected |