mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix #316221, Michal Benes, Stanislav Brabec;
2005-12-27 Matthias Clasen <mclasen@redhat.com> Fix #316221, Michal Benes, Stanislav Brabec; * configure.in: Fix a strict aliasing problem in g_static_mutex_get_mutex(). * glib/gthread.h: ...and in g_static_mutex_get_mutex_impl_shortcut().
This commit is contained in:
parent
97ffe020cd
commit
1e4efb6554
@ -1,5 +1,12 @@
|
||||
2005-12-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Fix #316221, Michal Benes, Stanislav Brabec;
|
||||
|
||||
* configure.in: Fix a strict aliasing problem in
|
||||
g_static_mutex_get_mutex().
|
||||
* glib/gthread.h: ...and in
|
||||
g_static_mutex_get_mutex_impl_shortcut().
|
||||
|
||||
* glib/gdatasetprivate.h: Add a cast to silence compiler
|
||||
warnings. (#321978, Andrew Paprocki)
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
2005-12-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Fix #316221, Michal Benes, Stanislav Brabec;
|
||||
|
||||
* configure.in: Fix a strict aliasing problem in
|
||||
g_static_mutex_get_mutex().
|
||||
* glib/gthread.h: ...and in
|
||||
g_static_mutex_get_mutex_impl_shortcut().
|
||||
|
||||
* glib/gdatasetprivate.h: Add a cast to silence compiler
|
||||
warnings. (#321978, Andrew Paprocki)
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
2005-12-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Fix #316221, Michal Benes, Stanislav Brabec;
|
||||
|
||||
* configure.in: Fix a strict aliasing problem in
|
||||
g_static_mutex_get_mutex().
|
||||
* glib/gthread.h: ...and in
|
||||
g_static_mutex_get_mutex_impl_shortcut().
|
||||
|
||||
* glib/gdatasetprivate.h: Add a cast to silence compiler
|
||||
warnings. (#321978, Andrew Paprocki)
|
||||
|
||||
|
@ -2358,7 +2358,7 @@ struct _GStaticMutex
|
||||
};
|
||||
#define G_STATIC_MUTEX_INIT { NULL, { { $g_mutex_contents} } }
|
||||
#define g_static_mutex_get_mutex(mutex) \\
|
||||
(g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex)) : \\
|
||||
(g_thread_use_default_impl ? ((GMutex*) &((mutex)->static_mutex.pad)) : \\
|
||||
g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
|
||||
_______EOF
|
||||
else
|
||||
|
@ -138,7 +138,7 @@ void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable);
|
||||
GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex);
|
||||
|
||||
#define g_static_mutex_get_mutex_impl_shortcut(mutex) \
|
||||
(g_atomic_pointer_get ((gpointer*)mutex) ? *(mutex) : \
|
||||
(g_atomic_pointer_get (mutex) ? *(mutex) : \
|
||||
g_static_mutex_get_mutex_impl (mutex))
|
||||
|
||||
/* shorthands for conditional and unconditional function calls */
|
||||
|
Loading…
Reference in New Issue
Block a user