3 ms·
The latest on consume: http://wg21.link/p0190r0 http://wg21.link/p0190r0 The spec is pretty sound, but unimplemented because that's not how compilers work righ
by jfbastien 10y ago
The latest on consume: http://wg21.link/p0190r0 http://wg21.link/p0190r0
The spec is pretty sound, but unimplemented because that's not how compilers work right now for the generality that consume wants. I think the above proposal is likely to work because it's more restrictive towards how consume works, but we need implementation experience.
Linux uses consume extensively for RCU, and I don't think it'll go away soon because of the benefits it provides to Power and ARM. It works through a gentleperson's agreement between Linux's RCU implementation in C and GCC.
- gpderetta 10y agoThere was a recent thread don lkml were after a long discussion on memory_order_consume, Linus wondered what would the cost be of replacing ACCESS_ONCE with a proper acquire. Someone run a test on arm64 and there was no measurable effect. Linus then actively considered the switch. I doubt it will happen right now or even the next few years, but it could happen soon.