atomic != exchange
atomic != exchange
Posted Mar 15, 2014 6:18 UTC (Sat) by bnorris (subscriber, #92090)Parent article: MCS locks and qspinlocks
> So there is no need for atomic operations when making changes to that structure
s/atomic/atomic exchange/
I believe you still need to use an atomic write operation, so that the CPU can read its own lock coherently; it just doesn't need to be an atomic exchange, since there are no other modifiers.