3 ms·
With the C++ memory model you can make std::atomic<char> larger than char.
by cwzwarich 7y ago
With the C++ memory model you can make std::atomic<char> larger than char.
- gpderetta 7y agoThe issue is not with atomic but with all non atomic accesses. The standard guarantees that two concurrent writes to contiguous but distinct char-sized memory location to be legal and data-race-free.