Commit 2af063c0 authored by Sebastian Wilhelmi's avatar Sebastian Wilhelmi Committed by Sebastian Wilhelmi

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.
parent e1c15eb0
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> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to
......
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> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to
......
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> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to
......
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> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to
......
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> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to
......
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> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to
......
...@@ -530,6 +530,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic, ...@@ -530,6 +530,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
return result; return result;
} }
#ifdef G_ATOMIC_OP_MEMORY_BARRIER_NEEDED
gint gint
g_atomic_int_get (gint *atomic) g_atomic_int_get (gint *atomic)
{ {
...@@ -552,7 +553,8 @@ g_atomic_pointer_get (gpointer *atomic) ...@@ -552,7 +553,8 @@ g_atomic_pointer_get (gpointer *atomic)
G_UNLOCK (g_atomic_lock); G_UNLOCK (g_atomic_lock);
return result; return result;
} }
#endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */
#elif defined (G_ATOMIC_OP_MEMORY_BARRIER_NEEDED) #elif defined (G_ATOMIC_OP_MEMORY_BARRIER_NEEDED)
gint gint
g_atomic_int_get (gint *atomic) g_atomic_int_get (gint *atomic)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment