Re:What's up with this new memory_order_consume memory order?
by gpderetta on Wednesday May 24, 2023 @11:52AM
(#36059820)
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.
Then again, I usually target x86 where these defaults are optimal, in other architectures relaxing RMWs further has benefits.