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:
Ryan Lortie
2011-10-04 15:30:39 -04:00
parent 310c3ed4cc
commit 47444dacc0
19 changed files with 353 additions and 351 deletions

View File

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