[PATCH] disable atomic ops for n900

Alon Levy alevy at redhat.com
Thu Jul 29 01:13:35 PDT 2010


---
 client/x11/atomic_count.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/client/x11/atomic_count.h b/client/x11/atomic_count.h
index f48c667..3b1a3b8 100644
--- a/client/x11/atomic_count.h
+++ b/client/x11/atomic_count.h
@@ -24,12 +24,14 @@ public:
 
     uint32_t operator ++ ()
     {
-        return __sync_add_and_fetch(&_count, 1);
+        //return __sync_add_and_fetch(&_count, 1);
+        return ++_count;
     }
 
     uint32_t operator -- ()
     {
-        return __sync_sub_and_fetch(&_count, 1);
+        //return __sync_sub_and_fetch(&_count, 1);
+        return --_count;
     }
 
     operator uint32_t () { return _count;}
-- 
1.5.6.1


------=_Part_18286_727975858.1280421066385--


More information about the Spice-devel mailing list