2 ms·
You are not wrong; still an std::atomic variant that defaulted to mo_release on assignment, mo_acquire on load and mo_aq_rel on RMW would have covered 99% of my
by gpderetta 3y ago
You are not wrong; still an std::atomic variant that defaulted to mo_release on assignment, mo_acquire on load and mo_aq_rel on RMW would have covered 99% of my use cases.
Then again, I usually target x86 where these defaults are optimal, in other architectures relaxing RMWs further has benefits.