Received: by 10.66.83.74 with SMTP id o10mr3323377pay.33.1346758283154; Tue, 04 Sep 2012 04:31:23 -0700 (PDT) Received: by 10.52.33.34 with SMTP id o2mr2284205vdi.12.1346758282736; Tue, 04 Sep 2012 04:31:22 -0700 (PDT) Path: csiph.com!usenet.pasdenom.info!gegeweb.org!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!r4no6296984pbs.0!news-out.google.com!t10ni19137469pbh.0!nntp.google.com!4no6172294pbn.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.programming.threads Date: Tue, 4 Sep 2012 04:31:22 -0700 (PDT) In-Reply-To: <504244da$0$6576$9b4e6d93@newsspool3.arcor-online.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=212.118.224.149; posting-account=i6kVbgoAAAAuCYJFWXSXK1yKVc3xQvBY NNTP-Posting-Host: 212.118.224.149 References: <504244da$0$6576$9b4e6d93@newsspool3.arcor-online.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Who needs acquire semantics for read operations? From: =?ISO-8859-1?Q?V=E1clav_Zeman?= Injection-Date: Tue, 04 Sep 2012 11:31:23 +0000 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.programming.threads:1045 Dne sobota, 1. z=E1=F8=ED 2012 19:24:43 UTC+2 Marcel M=FCller napsal(a): > On 01.09.12 10.28, Rani Sharoni wrote: >=20 > > AFAIU, acquire semantics for read operations is guaranteed for >=20 > > volatile variables by the MSVC compiler. >=20 >=20 >=20 > AFAIK x86/x64 has no memory reordering anyway. VC can only compile for=20 >=20 > x86/x64. So volatile is mostly useless. Is mainly disables the optimizer. Visual Studio can actually compile also for IA64 and that does support memo= ry access reordering, AFAIK. --=20 VZ