
26 Aug
2011
26 Aug
'11
6:02 p.m.
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.