Wrapper for relaxed atomic read and write. May resort to lock based read/write if atomic read/write for type T
is not supported.
More...
#include <TRelaxedAtomic.h>
template<typename T>
class ph::TRelaxedAtomic< T >
Wrapper for relaxed atomic read and write. May resort to lock based read/write if atomic read/write for type T
is not supported.
◆ TRelaxedAtomic() [1/2]
◆ TRelaxedAtomic() [2/2]
◆ relaxedFetchAdd()
◆ relaxedRead()
- Note
- Prefixing the method with the word "relaxed" is intended–it is to emphasize the fact that the read operation is with relaxed memory order, just like
std::memory_order_relaxed
would be specified at the call site if std::atomic
was used directly.
◆ relaxedWrite()
- Note
- Prefixing the method with the word "relaxed" is intended–it is to emphasize the fact that the write operation is with relaxed memory order, just like
std::memory_order_relaxed
would be specified at the call site if std::atomic
was used directly.
The documentation for this class was generated from the following file: