Boost logo

Boost :

Subject: Re: [boost] [lockfree] review
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2011-08-25 00:13:41


[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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk