mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
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:
committed by
Sebastian Wilhelmi
parent
c4cbaa8641
commit
9122d21e65
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user