[cpp-threads]atomic operations package
Hans Boehm
Hans.Boehm at hp.com
Mon Aug 22 18:16:24 BST 2005
On Mon, 22 Aug 2005, Alexander Terekhov wrote:
> On 8/15/05, Boehm, Hans <hans.boehm at hp.com> wrote:
> > It seems to me that we will have to make some serious compromises here.
> > In some cases, we will not be able to generate the fastest
> > possible code for every algorithm without resorting to assembly
> > code.
>
> Folks won't grok it. Here's yet another illustration:
>
> http://blogs.sun.com/roller/page/pgdh?entry=caring_for_the_environment_making
>
I don't understand the problem here. The code there contains another
instance of broken double-checked locking. The only use of a memory
barrier I see could easily be translated to our current proposal.
Hans
More information about the cpp-threads
mailing list