News for hackers. Stuff that matters.
Re:No sane compiler would optimize atomics (2015) by spacechild1 on Monday July 12, 2021 @05:44AM (#27808633)
It's because people still confuse std::atomic with volatile. Actually, there is a way to get both behaviors: 'volatile std::atomic'. Personally, I never had a situation where I would've needed that, and I use atomics on a regular basis.

There are no comments on this comment yet.