On 23/06/10 15:26, Michael Schnell wrote: > > Other ARMs (including thumb2) uses a loop with result compare. AFAIK > this does not work reliably. I am not sure it it's really true that ARM No, SWP is atomic, so the implementation looks good (at a glance). Henry