mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Deprecate g_thread_init()
Move the last few things that needed thread-safe initialisation to a global ctor. https://bugzilla.gnome.org/show_bug.cgi?id=660744
This commit is contained in:
@@ -4267,9 +4267,6 @@ g_type_init_with_debug_flags (GTypeDebugFlags debug_flags)
|
||||
TypeNode *node;
|
||||
volatile GType votype;
|
||||
|
||||
if (!g_thread_get_initialized())
|
||||
g_thread_init (NULL);
|
||||
|
||||
G_LOCK (type_init_lock);
|
||||
|
||||
G_WRITE_LOCK (&type_rw_lock);
|
||||
|
Reference in New Issue
Block a user