mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-07 19:35:50 +01:00
Define g_atomic_(int|pointer)_get only for
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de> * glib/gatomic.c: Define g_atomic_(int|pointer)_get only for G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
This commit is contained in:
parent
e1c15eb0d1
commit
2af063c00e
@ -1,3 +1,8 @@
|
||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
|
||||
|
||||
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmain.c: Fix leftover references to
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
|
||||
|
||||
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmain.c: Fix leftover references to
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
|
||||
|
||||
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmain.c: Fix leftover references to
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
|
||||
|
||||
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmain.c: Fix leftover references to
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
|
||||
|
||||
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmain.c: Fix leftover references to
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
|
||||
|
||||
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gmain.c: Fix leftover references to
|
||||
|
@ -530,6 +530,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef G_ATOMIC_OP_MEMORY_BARRIER_NEEDED
|
||||
gint
|
||||
g_atomic_int_get (gint *atomic)
|
||||
{
|
||||
@ -552,7 +553,8 @@ g_atomic_pointer_get (gpointer *atomic)
|
||||
G_UNLOCK (g_atomic_lock);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
#endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */
|
||||
#elif defined (G_ATOMIC_OP_MEMORY_BARRIER_NEEDED)
|
||||
gint
|
||||
g_atomic_int_get (gint *atomic)
|
||||
|
Loading…
x
Reference in New Issue
Block a user