4 Dec
2014
4 Dec
'14
10:41 p.m.
On 5/12/2014 02:32, Niall Douglas wrote:
On Intel the least strong read you can do is an acquire. It makes me very wary of ever using atomics with relaxed because you simply can't test them on Intel. It was a big reason I invested in that ARM board.
I use Relacy Race Detector whenever I want to test anything to do with atomics, particularly the weaker orderings. It does require extracting the code in question to a little self-contained example along with a bit of extra decoration but it works quite well.