I use std::atomic to protect access to float variables that may be assessed from multiple threads. This works well on x86, but crashes on ARMv7 (RPi2).
I'm compiling on x86 with VS2012, Xcode and GCC4.9.2 with no problems. Code that use the atomic values when I compile for ARMv7 (also GCC4.9.2) crashes with 'Bus Error' (which you get when data is not properly aligned on ARM).
Is this a bug in GCC or am I doing something wrong?
Aucun commentaire:
Enregistrer un commentaire