25 #ifndef _ATOMIC_WRAPPER_H_
26 #define _ATOMIC_WRAPPER_H_
30 #include "galois/config.h"
50 : CopyableAtomic(other.load(std::memory_order_relaxed)) {}
54 this->store(other.load(std::memory_order_relaxed),
55 std::memory_order_relaxed);
CopyableAtomic & operator=(const CopyableAtomic< T > &other)
Copy constructor operator.
Definition: AtomicWrapper.h:53
Class that inherits from std::atomic to make it copyable by defining a copy constructor.
Definition: AtomicWrapper.h:40
constexpr CopyableAtomic(const CopyableAtomic< T > &other)
Copy constructor.
Definition: AtomicWrapper.h:49
CopyableAtomic()
Default constructor.
Definition: AtomicWrapper.h:43
constexpr CopyableAtomic(T desired)
Constructor initializing atomic to passed in data.
Definition: AtomicWrapper.h:46