[Bug 490371] Re: Atomic operations not safe for ARMv7, Thumb-2 and multicore
Michael K. Edwards
m.k.edwards at gmail.com
Mon Mar 14 22:43:15 UTC 2011
Alternately, one could use the GCC intrinsics. They are more
conservative about memory barriers, which I believe to be more correct
in any case (it is not safe to let the compiler or the instruction
scheduler move memory accesses into the ldrex/strex critical region).
Other than memory barrier differences, the intrinsic-based
implementation should be equally fast. (Although there is no equivalent
of fetchAndStore, the only actual use cases store 0, and I've special-
cased that in this implementation using __sync_fetch_and_and().)
** Patch added: "Implement Qt atomics using GCC intrinsics"
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in ubuntu.
Atomic operations not safe for ARMv7,Thumb-2 and multicore
More information about the kubuntu-bugs