Il 11/04/2013 12:11, Stefan Hajnoczi ha scritto: > Also, these sync gcc builtins are not available on all platforms or gcc > versions. We need to be a little careful to avoid breaking builds here. > Maybe __sync_add_and_fetch() is fine but I wanted to mention it because > I've had trouble with these in the past.
We are already using GCC atomics elsewhere (spice, migration, vhost). They are really ugly to type and not complete, so we should have our own wrapper include, but they are fine. Paolo