GThread: always initialise the system thread

It's always safe to call the thread implementation 'self' function.
This commit is contained in:
Ryan Lortie 2011-09-18 01:24:27 -04:00
parent 4596dfbc75
commit 0e604ef0b5

View File

@ -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);