[glib/wip/mutexes] GThread: always initialise the system thread



commit 795030154cefdd046c290e2c21752cf7dd2e3759
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Sep 18 01:24:27 2011 -0400

    GThread: always initialise the system thread
    
    It's always safe to call the thread implementation 'self' function.

 glib/gthread.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/glib/gthread.c b/glib/gthread.c
index feb9e87..1040629 100644
--- a/glib/gthread.c
+++ b/glib/gthread.c
@@ -2161,8 +2161,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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]