[glib/wip/mutexes: 20/58] GThread: always initialise the system thread
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/mutexes: 20/58] GThread: always initialise the system thread
- Date: Mon, 19 Sep 2011 05:14:41 +0000 (UTC)
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]