
4 Apr
2008
4 Apr
'08
9:12 p.m.
Rob Desbois:
If you can provide the ARM equivalent operation I would be extremely grateful, but I am unable to code it myself unfortunately.
I think that ARM (pre-v6) doesn't have an atomic fetch-and-add operation. It only has an atomic swap. We'll have to use a spinlock. It would be helpful if you can try whether libs/smart_ptr/test/spinlock_test.cpp from the current SVN trunk compiles and works for you.