I would like to know "what" is "atomic", indeed.
I understand that an atomic operation will modify a 32 or 64 bits shared
variable with one machine instruction, and that no goroutine can see a
So, "atomic" can mean that all bits are changed, or none of them.
But does "atomic" also mean that the change is immediately visible to other
goroutine ? or will the change only be visible to them "eventually" ?
Is the code below:
var a int64
the same as:
a += 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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.