4 ms·
Yes, see: https://news.ycombinator.com/item?id=45091610 https://news.ycombinator.com/item?id=45091610 Originally, I was commenting, that the purpose of the art
by thw_9a83c 1y ago
Yes, see: https://news.ycombinator.com/item?id=45091610 https://news.ycombinator.com/item?id=45091610
Originally, I was commenting, that the purpose of the article was initially unclear to me, since the order of thread execution cannot be determined anyway.
I now understand that there was a corner case in the POWER and ARM architectures when mixing seq-cst and acquire-release operations on the same atomic variable. Thus, C++26 will be updated to allow more relaxed behavior in order to maintain performance.
https://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0668r5.html https://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p06...