On Sunday, July 9, 2017 at 5:10:20 PM UTC+8, Jan Mercl wrote: > > On Sun, Jul 9, 2017 at 10:56 AM T L <tapi...@gmail.com <javascript:>> > wrote: > > > But I remember that the "happens-before relationship" is never written > down in any official Go documentation. > > https://golang.org/ref/mem#tmp_2 > > > -- > > -j >
Aha, what I wanted to express is the execution orders of the two lines may be randomized. atomic.AddInt32(&x, 1) atomic.AddInt32(&y, 1) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.