Semantics of volatile std::atomic
Generally std::atomic<T>
does not imply semantics of volatile
, i.e. operations on the atomic object are not observable side effects that the compiler needs to preserve.
Generally std::atomic<T>
does not imply semantics of volatile
, i.e. operations on the atomic object are not observable side effects that the compiler needs to preserve.