|
SDL3pp
A slim C++ wrapper for SDL3
|
A type representing an atomic of an arbitrary pointer.
Public Member Functions | |
| constexpr | AtomicPointer (T *value) |
| Construcst from T. | |
| AtomicPointer (const AtomicPointer &value)=delete | |
| AtomicPointer & | operator= (const AtomicPointer &value)=delete |
| bool | CompareAndSwap (T *oldval, T *newval) |
| Set a pointer to a new value if it is currently an old value. More... | |
| T * | Set (T *v) |
| Set a pointer to a value atomically. More... | |
| T * | Get () |
| Get the value of a pointer atomically. More... | |