write with release semantic cannot be reordered with any other writes, dependent or not.
Relaxed atomic writes can be reordered in any way.
write with release semantic cannot be reordered with any other writes, dependent or not.
Relaxed atomic writes can be reordered in any way.
> write with release semantic cannot be reordered with any other writes, dependent or not.
To quibble a little bit: later program-order writes CAN be reordered before release writes. But earlier program-order writes may not be reordered after release writes.
> Relaxed atomic writes can be reordered in any way.
To quibble a little bit: they can't be reordered with other operations on the same variable.
Yep, you are right, more precise, and precision is very important in this topic.
I stand corrected.