summaryrefslogtreecommitdiff
path: root/gobject
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-10-04 15:30:39 -0400
committerRyan Lortie <desrt@desrt.ca>2011-10-04 15:31:49 -0400
commit47444dacc069be5984df4064ae382d45a9ae8c9e (patch)
tree5b4d5f2dde3f4646b076a12d845acac2d75396f1 /gobject
parent310c3ed4cc733f47b88b44fb03757bd7213a4f9a (diff)
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
Diffstat (limited to 'gobject')
-rw-r--r--gobject/gtype.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gobject/gtype.c b/gobject/gtype.c
index a362fd502..748bd9b07 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -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);