|
|
Subscribe / Log in / New account

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.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds