From: Ryan Lortie Date: Sun, 18 Sep 2011 05:24:27 +0000 (-0400) Subject: GThread: always initialise the system thread X-Git-Tag: 2.31.0~440 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e604ef0b527129f947637bc3ae742e9e2c30c90;p=platform%2Fupstream%2Fglib.git GThread: always initialise the system thread It's always safe to call the thread implementation 'self' function. --- diff --git a/glib/gthread.c b/glib/gthread.c index 64522ae..57cea0c 100644 --- a/glib/gthread.c +++ b/glib/gthread.c @@ -2162,8 +2162,7 @@ g_thread_self (void) thread->thread.data = NULL; thread->private_data = NULL; - if (g_thread_supported ()) - G_THREAD_UF (thread_self, (&thread->system_thread)); + G_THREAD_UF (thread_self, (&thread->system_thread)); g_private_set (&g_thread_specific_private, thread);