[glib] thread: reduce use of system_thread



commit a90a4b967fde1c2d7c7d6d978a797731adb25057
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Oct 12 18:33:07 2011 -0400

    thread: reduce use of system_thread
    
    The use of system_thread is now limited to joining.  We don't do that
    for threads that we didn't create for ourselves, so we don't need to
    call g_system_thread_self() to fill in system_thread for those.

 glib/gthread.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/glib/gthread.c b/glib/gthread.c
index 4704227..23fd703 100644
--- a/glib/gthread.c
+++ b/glib/gthread.c
@@ -928,8 +928,6 @@ g_thread_self (void)
       thread->thread.func = NULL;
       thread->thread.data = NULL;
 
-      g_system_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]