On Mar 16, 2007, at 2:21 AM, Johnny Billquist wrote:
No, not for spinlocks. There do exist applications that might want a
compare-and-{store,swap}, and the CAS primitive is also used to
implement other atomic operations on many (most?) architectures (such
as atomic-increment, atomic-or, etc.)
-- thorpej