31 return m_atomic.load(std::memory_order_relaxed);
41 m_atomic.store(value, std::memory_order_relaxed);
45 requires std::is_integral_v<T> && std::is_floating_point_v<T>
47 return m_atomic.fetch_add(value, std::memory_order_relaxed);
51 std::atomic<T> m_atomic;
Wrapper for relaxed atomic read and write. May resort to lock based read/write if atomic read/write f...
Definition TRelaxedAtomic.h:14
TRelaxedAtomic(T value)
Definition TRelaxedAtomic.h:20
TRelaxedAtomic()
Definition TRelaxedAtomic.h:16
T relaxedRead() const
Definition TRelaxedAtomic.h:29
void relaxedWrite(T value)
Definition TRelaxedAtomic.h:39
T relaxedFetchAdd(T value)
Definition TRelaxedAtomic.h:44
The root for all renderer implementations.
Definition EEngineProject.h:6