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


Groups > comp.programming.threads > #380

Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a reasonable amount of time."

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!feeder3.eweka.nl!81.171.88.15.MISMATCH!eweka.nl!lightspeed.eweka.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.uni-stuttgart.de!news.nask.pl!news.nask.org.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From Edek <edek.pienkowski@gmail.com>
Newsgroups comp.programming.threads
Subject Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a reasonable amount of time."
Date Sat, 02 Jul 2011 13:59:38 +0200
Organization ATMAN - ATM S.A.
Lines 27
Message-ID <iun14p$v3c$1@node2.news.atman.pl> (permalink)
References <3c50710c-c220-4697-91a7-49b6dc304782@r33g2000prh.googlegroups.com> <4E08D22D.7EB751FB@web.de> <9eceabc4-b9fb-49e3-a917-6986ee00a33e@d26g2000prn.googlegroups.com>
NNTP-Posting-Host 83-238-152-145.ip.netia.com.pl
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace node2.news.atman.pl 1309607897 31852 83.238.152.145 (2 Jul 2011 11:58:17 GMT)
X-Complaints-To usenet@atman.pl
NNTP-Posting-Date Sat, 2 Jul 2011 11:58:17 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Linux/3.1.0-15 Thunderbird/3.1.0
In-Reply-To <9eceabc4-b9fb-49e3-a917-6986ee00a33e@d26g2000prn.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.programming.threads:380

Show key headers only | View raw


>> C++11 aside (the latest draft is not public and I have no idea what it
>> says),
>
> C++0x, 29.3 p13. In draft n3242, the exact text is:
> "Implementations should make atomic stores visible to atomic loads
> within a reasonable amount of time."
>

If you have the time, this point somehow interests me a lot.

To start: does it apply to relaxed only?

The main question: Does it apply to release (and acquire/consume)?
(I am ignoring other orderings on purpose, as irrelevant for
release/acquire, or consume, pair)

What I am basically wondering about, is how to release a lock
(or anything else blocking another thread)
in a way that assures it is done 'now' [1]; I care more
about the standard - > how to write code < - than how it is
on architecture X  - > how to implement a compiler <.

Edek

[1] I do have a notion of relativity of now. I mean 'without any
costly delay'

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


Thread

Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a   reasonable amount of time." Alexander Terekhov <terekhov@web.de> - 2011-06-27 20:55 +0200
  Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a reasonable amount of time." Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-01 04:06 -0700
    Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a  reasonable amount of time." Alexander Terekhov <terekhov@web.de> - 2011-07-01 17:35 +0200
      Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a reasonable amount of time." Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-01 15:23 -0700
        Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a  reasonable amount of time." Alexander Terekhov <terekhov@web.de> - 2011-07-02 10:18 +0200
          Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a reasonable amount of time." Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-05 15:10 -0700
    Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a reasonable amount of time." Edek <edek.pienkowski@gmail.com> - 2011-07-02 13:59 +0200
      Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a  reasonableamount of time." Alexander Terekhov <terekhov@web.de> - 2011-07-05 10:12 +0200
        Re: C++0x, 29.3 p13 "[...] atomic stores visible [...] within a  reasonableamount of time." Edek <edek.pienkowski@gmail.com> - 2011-07-05 11:36 +0200

csiph-web