Boost logo

Boost :

Subject: Re: [boost] [spinlock] Spin on volatile read, NUMA fairness?
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2014-12-04 17:41:36


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk