[cpp-threads] Yet another visibility question

Peter Dimov pdimov at mmltd.net
Thu Jan 11 21:59:10 GMT 2007


Alexander Terekhov wrote:

> Yeah, and IBM does some NUMA with Intel Xeons, IIRC. That's why I've
> been telling all along that lock_cmpxchg(&var, 42, 42) for loads is
> the way to do SC on x86/IA32. ;-)

If x86 loads do have acquire semantics as we've been assuming, wouldn't it 
be enough to just use lock xchg for stores? 




More information about the cpp-threads mailing list