GThread: always initialise the system thread
authorRyan Lortie <desrt@desrt.ca>
Sun, 18 Sep 2011 05:24:27 +0000 (01:24 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:53 +0000 (16:06 -0400)
It's always safe to call the thread implementation 'self' function.

glib/gthread.c

index 64522ae..57cea0c 100644 (file)
@@ -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);