mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-27 03:18:59 +02:00
GThread: always initialise the system thread
It's always safe to call the thread implementation 'self' function.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user