[glib] GThread: always initialise the system thread
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GThread: always initialise the system thread
- Date: Wed, 21 Sep 2011 20:19:02 +0000 (UTC)
commit 0e604ef0b527129f947637bc3ae742e9e2c30c90
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 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]