Boost logo

Boost :

Subject: Re: [boost] [lockfree] review
From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2011-08-26 14:02:28


Dave Abrahams wrote:
[...]
> IIUC, using mutexes in the implementation of C++0x atomics has always
> been considered an available choice for implementors. ...

Lock-free atomics can not be implemented using mutexes. Lock-free SC
atomics need a heavy-weight 'hwsync' on PowerPC/PPC (mutexes don't need
'hwsync').

Nobody needs atomics implemented using mutexes because locking can be
done more efficiently on higher level.

regards,
alexander.


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