4 ms·
> 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 bigge
by brickteacup 3y ago
> 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