Fix memory barrier position in g_atomic_int_get and g_atomic_pointer_get.

2005-12-17  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
	and g_atomic_pointer_get.
This commit is contained in:
Sebastian Wilhelmi
2005-12-17 12:26:54 +00:00
committed by Sebastian Wilhelmi
parent c4cbaa8641
commit 9122d21e65
4 changed files with 17 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
2005-12-17 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
and g_atomic_pointer_get.
2005-12-07 Tor Lillqvist <tml@novell.com>
* glib-gettextize.in: Look up prefix at run-time on Win32,

View File

@@ -1,3 +1,8 @@
2005-12-17 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
and g_atomic_pointer_get.
2005-12-07 Tor Lillqvist <tml@novell.com>
* glib-gettextize.in: Look up prefix at run-time on Win32,

View File

@@ -1,3 +1,8 @@
2005-12-17 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
and g_atomic_pointer_get.
2005-12-07 Tor Lillqvist <tml@novell.com>
* glib-gettextize.in: Look up prefix at run-time on Win32,

View File

@@ -629,21 +629,15 @@ g_atomic_pointer_get (gpointer *atomic)
gint
g_atomic_int_get (gint *atomic)
{
gint result = *atomic;
G_ATOMIC_MEMORY_BARRIER;
return result;
return *atomic;
}
gpointer
g_atomic_pointer_get (gpointer *atomic)
{
gpointer result = *atomic;
G_ATOMIC_MEMORY_BARRIER;
return result;
return *atomic;
}
#endif /* DEFINE_WITH_MUTEXES || G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */