SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::AtomicPointer< T > Class Template Reference

A type representing an atomic of an arbitrary pointer. More...

Public Member Functions

constexpr AtomicPointer (T *value)
 Construcst from T.
 AtomicPointer (const AtomicPointer &value)=delete
AtomicPointeroperator= (const AtomicPointer &value)=delete
bool CompareAndSwap (T *oldval, T *newval)
 Set a pointer to a new value if it is currently an old value.
T * Set (T *v)
 Set a pointer to a value atomically.
T * Get ()
 Get the value of a pointer atomically.

Detailed Description

template<class T>
class SDL::AtomicPointer< T >

A type representing an atomic of an arbitrary pointer.


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