On Sun, Oct 19, 2008 at 12:36:55PM -0400, Paul Coccoli wrote:
The only time you can get away without atomic ops is
on uni-processor.
Please cite a reference that says otherwise.
Plaese show us how using a non-atomic addition could go wrong.
Notice that all the fixes proposed all involve
removing the "+=" and
using only assignment.
First, that is not the same as requiring atomic addition.
Second, it is not true. The one I proposed just does the '+='.
If it's wrong show us how.
Ciao,
--
FA
Laboratorio di Acustica ed Elettroacustica
Parma, Italia
Lascia la spina, cogli la rosa.