Mark the vint member as volatile, which seems to be necessary to make
authorMatthias Clasen <mclasen@redhat.com>
Wed, 3 Aug 2005 20:20:47 +0000 (20:20 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 3 Aug 2005 20:20:47 +0000 (20:20 +0000)
2005-08-02  Matthias Clasen  <mclasen@redhat.com>

        * gclosure.c (union ClosureInt): Mark the vint member as
        volatile, which seems to be necessary to make atomic operations
        work on s390.

gobject/ChangeLog
gobject/gclosure.c

index 59c2e702d95b13b1f6edeb60f6f8fccfb4f75f77..c77c3fc244bb052c779cf5eb5423715edd7fd32b 100644 (file)
@@ -1,5 +1,9 @@
 2005-08-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * gclosure.c (union ClosureInt): Mark the vint member as
+       volatile, which seems to be necessary to make atomic operations
+       work on s390.
+
        * === Released 2.7.5 ===
 
 Mon Aug  1 23:00:42 2005  Tim Janik  <timj@imendio.com>
index c28064453bb3b75c5d5dd7d9ecfaa02a6388be2f..7097075ed8ada060d96b05ce3bb6233a624dd073 100644 (file)
@@ -41,7 +41,7 @@
 
 typedef union {
   GClosure closure;
-  gint     vint;
+  volatile gint vint;
 } ClosureInt;
 
 #define CHANGE_FIELD(_closure, _field, _OP, _value, _must_set, _SET_OLD, _SET_NEW)      \