
25 Aug
2011
25 Aug
'11
4:13 a.m.
[Gottlob Frege]
1. I wish that C++11 atomics defaulted to acquire-on-read and release-on-write, and that's how I will almost always use them. It is also what java and C# use, I believe (on volatiles).
That doesn't solve the "independent reads, independent writes" problem, which is why the non-Standard semantics that VC8 gave volatile aren't really useful. (volatile: a multithreaded programmer's worst enemy.) The Standard's focus on sequential consistency by default was carefully thought out. Stephan T. Lavavej Visual C++ Libraries Developer