Paolo Bonzini <pbonzini@...>
Il mer 10 feb 2021, 07:37 Ankur Arora <ankur.a.arora@...> ha scritto:
So I don't quite see what would make "memory_order_seq_cst" harder?The problem is that the ordering does not extend to relaxed (or even
acquire/release) loads and stores. Therefore *every* store that needs to be
ordered before a seq_cst load must also be seq_cst. This is hard enough to
guarantee that using a fence is preferable.
Is the total modification order the problem?