Re: A question about acquire/release semantic in the wiki page

2018-08-01 Thread Jonathan Wakely
On Wed, 1 Aug 2018 at 01:32, Bramandia Ramadhana wrote: > > Hi, > > I am reading the gcc wiki page about atomic Acquire/Release memory > model: https://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync. > > It is mentioned: > > "Both of these asserts can pass since there is no ordering imposed > between th

A question about acquire/release semantic in the wiki page

2018-07-31 Thread Bramandia Ramadhana
Hi, I am reading the gcc wiki page about atomic Acquire/Release memory model: https://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync. It is mentioned: "Both of these asserts can pass since there is no ordering imposed between the stores in thread 1 and thread 2. If this example were written using the