Introduction to Wait-free Algorithms in C++ Programming [video]
youtube.com
youtube.com
This could simplify read by making the sign flag a one-way gate enforced by the CPU semantics instead of the application?
You could do this trick on a machine that uses signed-magnitude representation, since a signed increment of 0xFFFF (INT_MIN) would result in 0xFFFE (INT_MIN + 1). But all modern processors use two's complement.
And this whole blog series: https://preshing.com/20120612/an-introduction-to-lock-free-p...