News for hackers. Stuff that matters.
Re:What's up with this new memory_order_consume memory order? by brickteacup on Wednesday May 24, 2023 @10:02AM (#36058212)
> Um... which platform?

most platforms with weaker-than-x86 memory models need additional barriers for acquires e.g. on ARM you need LDAR

> Probably the biggest reason that memory ordering semantics are such a mess

are they though? release/acquire semantics are actually intuitive once you get used to them and are very well suited for pointer-based lockfree data structures. consume is maybe more subtle but it's mostly an optimization on top of acquire, so not very difficult conceptually

There are no comments on this comment yet.