by tux3 · 2y ago · 0 comments
Topping the list, for me, would be memory_order_consume. It's so complicated and for such a slight extremely technical memory ordering optimization, compilers have mostly given up hope of ever implementing it.
There was even talk of outright removing it from C++, but looks like it still stands today. I've never seen it used correctly (and even if it were, compilers just throw up their hands at it)
> 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...