#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 |
| 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 |
|
mutableprotected |