Re: questions about memory_order_seq_cst fence




Anthony Williams wrote:

[... remote write atomicity ...]

However, in particular cases then you can order particular subsets. If
you have an example of code that you would like to work then I can see
if I can think of a way to make it work without using seq_cst everywhere.

See examples in

http://portal.acm.org/citation.cfm?id=1375591
("4.2 Unintended Consequences of Relaxing Write-Atomicity")

"4.2.1 Write-to-Read Causality (WRC) Must be Upheld"

"4.2.2 Read-to-Write Causality (RWC)"

"4.2.3 Subtle Interplay Between Coherence and Causality"

regards,
alexander.
.