Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
|
A wrapper class for a stl-like atomic pointer specialization. Uses the STL by default. Define GTS_USE_CUSTOM_ATOMICS to add your own backend, or replace everything completely as long as this interface exists. More...
#include <Atomic.h>
Inherits gts::AtomicCommon< T >.
Public Member Functions | |
AtomicPointer (const AtomicPointer &)=delete | |
AtomicPointer & | operator= (const AtomicPointer &)=delete |
AtomicPointer & | operator= (const AtomicPointer &) volatile=delete |
constexpr | AtomicPointer (T val) |
T | fetch_add (ptrdiff_t rhs, gts::memory_order order) |
T | fetch_sub (ptrdiff_t rhs, gts::memory_order order) |
Public Member Functions inherited from gts::AtomicCommon< T > | |
AtomicCommon (const AtomicCommon &)=delete | |
AtomicCommon & | operator= (const AtomicCommon &)=delete |
AtomicCommon & | operator= (const AtomicCommon &) volatile=delete |
constexpr | AtomicCommon (T val) |
void | store (T value, gts::memory_order order) |
T | load (gts::memory_order order) const |
T | exchange (T value, gts::memory_order order) |
bool | compare_exchange_weak (T &expected, T value, gts::memory_order xchgOrder, gts::memory_order loadOrder) |
bool | compare_exchange_strong (T &expected, T value, gts::memory_order xchgOrder, gts::memory_order loadOrder) |
Additional Inherited Members | |
Protected Attributes inherited from gts::AtomicCommon< T > | |
GTS_ATOMIC_TYPE< T > | m_atom |
A wrapper class for a stl-like atomic pointer specialization. Uses the STL by default. Define GTS_USE_CUSTOM_ATOMICS to add your own backend, or replace everything completely as long as this interface exists.