top | item 39935843

(no title)

ric129 | 1 year ago

I recall plenty of implementations turning into the same as a memory_order_acquire, which seems fine these days

discuss

order

loeg|1 year ago

> On all mainstream CPUs other than DEC Alpha, dependency ordering is automatic, no additional CPU instructions are issued for this synchronization mode, only certain compiler optimizations are affected (e.g. the compiler is prohibited from performing speculative loads on the objects that are involved in the dependency chain).

> Note that currently (2/2015) no known production compilers track dependency chains: consume operations are lifted to acquire operations.

https://en.cppreference.com/w/cpp/atomic/memory_order#Releas...