mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
GThread: always initialise the system thread
It's always safe to call the thread implementation 'self' function.
This commit is contained in:
parent
4596dfbc75
commit
0e604ef0b5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user