Re:What's up with this new memory_order_consume memory order?
by brickteacup on Wednesday May 24, 2023 @08:58AM
(#36057374)
`sample_consume_allowed` is an example of a transformation that the compiler is permitted to apply to the original function `sample_consume`. if the original function had used `acquire` instead of `consume` then the reordering of the v2 load before the p load wouldn't've been allowed
[ Parent
| on HN ]