From 9645c707c050e7d43c75ec3634b2b66a4bbb41d0 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Tue, 23 May 2006 01:33:16 +0000 Subject: [PATCH] Run _g_atomic_thread_init as the first of the full fledged initializers to 2006-05-22 Sebastian Wilhelmi * glib/gthread.c (g_thread_init_glib): Run _g_atomic_thread_init as the first of the full fledged initializers to allow the later to potentially use atomic ints (which they currently do not). (#342563, Peter Kjellerstedt) --- ChangeLog | 7 +++++++ ChangeLog.pre-2-12 | 7 +++++++ glib/gthread.c | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8652f5ec..83e6db46c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-05-22 Sebastian Wilhelmi + + * glib/gthread.c (g_thread_init_glib): Run _g_atomic_thread_init + as the first of the full fledged initializers to allow the later + to potentially use atomic ints (which they currently do + not). (#342563, Peter Kjellerstedt) + 2006-05-16 Matthias Clasen * tests/Makefile.am: diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index d8652f5ec..83e6db46c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,10 @@ +2006-05-22 Sebastian Wilhelmi + + * glib/gthread.c (g_thread_init_glib): Run _g_atomic_thread_init + as the first of the full fledged initializers to allow the later + to potentially use atomic ints (which they currently do + not). (#342563, Peter Kjellerstedt) + 2006-05-16 Matthias Clasen * tests/Makefile.am: diff --git a/glib/gthread.c b/glib/gthread.c index e7a8be7fd..ddee4f785 100644 --- a/glib/gthread.c +++ b/glib/gthread.c @@ -144,10 +144,10 @@ g_thread_init_glib (void) _g_messages_thread_init_nomessage (); /* we may run full-fledged initializers from here */ + _g_atomic_thread_init (); _g_convert_thread_init (); _g_rand_thread_init (); _g_main_thread_init (); - _g_atomic_thread_init (); _g_utils_thread_init (); #ifdef G_OS_WIN32 _g_win32_thread_init ();