Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #1830

Re: forcing the compiler to reload from memory with c++0x

From Anthony Williams <anthony.ajw@gmail.com>
Newsgroups comp.programming.threads
Subject Re: forcing the compiler to reload from memory with c++0x
References (14 earlier) <87oc6s9o04.fsf@justsoftwaresolutions.co.uk> <iins4p$bhp$1@news.eternal-september.org> <87r5bjlchs.fsf@justsoftwaresolutions.co.uk> <iipt82$jif$1@news.eternal-september.org> <iipumu$54p$1@news.eternal-september.org>
Date 2011-02-08 08:10 +0000
Message-ID <87mxm7kkug.fsf@justsoftwaresolutions.co.uk> (permalink)
Organization CNNTP

Show all headers | View raw


Andy Venikov <swojchelowek@gmail.com> writes:

> Man, using stand-alone fences is even more complicated than adding
> correct ordering semantics to atomic loads and stores.

Yes.  I did suggest not having them in C++0x for that reason --- they
look easy, but actually they're even harder to get right than ordering
on operations. The others in the room felt that non-memory_order_seq_cst
atomics were an experts-only feature anyway, so it wasn't an issue.

Anthony
-- 
Author of C++ Concurrency in Action     http://www.stdthread.co.uk/book/
just::thread C++0x thread library             http://www.stdthread.co.uk
Just Software Solutions Ltd       http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

Back to comp.programming.threads | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: forcing the compiler to reload from memory with c++0x Andy Venikov <swojchelowek@gmail.com> - 2011-02-07 18:19 -0500
  Re: forcing the compiler to reload from memory with c++0x Alexander Terekhov <terekhov@web.de> - 2011-02-08 12:35 +0100
    Re: forcing the compiler to reload from memory with c++0x Anthony Williams <anthony.ajw@gmail.com> - 2011-02-08 11:49 +0000
  Re: forcing the compiler to reload from memory with c++0x Anthony Williams <anthony.ajw@gmail.com> - 2011-02-08 08:10 +0000
    Re: forcing the compiler to reload from memory with c++0x Andy Venikov <swojchelowek@gmail.com> - 2011-02-08 18:53 -0500

csiph-web