projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4596dfb
)
GThread: always initialise the system thread
author
Ryan Lortie
<desrt@desrt.ca>
Sun, 18 Sep 2011 05:24:27 +0000
(
01:24
-0400)
committer
Ryan 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
patch
|
blob
|
history
diff --git
a/glib/gthread.c
b/glib/gthread.c
index
64522ae
..
57cea0c
100644
(file)
--- 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);