3 ms·
Although pure aquire-release semantics would allow such reordering, it also didn't feel quite right to me, either. Fortunately, someone asked the exact same que
by spacechild1 5y ago
Although pure aquire-release semantics would allow such reordering, it also didn't feel quite right to me, either. Fortunately, someone asked the exact same question on Stack Overflow and got a good answer: https://stackoverflow.com/a/61300584 https://stackoverflow.com/a/61300584
Looks like you've been on the right track with regard to possible infinite loops.