This is the mail archive of the
mailing list for the GCC project.
Re: More on memory barriers
On Wed, 15 Sep 2004 16:48:50 -0400, Jason Merrill <firstname.lastname@example.org> wrote:
> On Wed, 15 Sep 2004 13:35:59 -0500, Benjamin Kosnik <email@example.com> wrote:
>> I would have thought that the Double Checked Lock would be written much
>> like the code you posted Jason. This idiom is appearing more and more
>> often in libstdc++ (currently sans the mb parts!) so I would very much
>> like to achieve consensus on the right way to do this.
> The general consensus seems to be "Don't".
Here's a thread about DCLP and C++.