summaryrefslogtreecommitdiff
path: root/gthread
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 /gthread
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 'gthread')
-rw-r--r--gthread/gthread-impl.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gthread/gthread-impl.c b/gthread/gthread-impl.c
index b623e12ac..82ef3a1fd 100644
--- a/gthread/gthread-impl.c
+++ b/gthread/gthread-impl.c
@@ -33,28 +33,15 @@
#include "glib.h"
-#include "gthreadprivate.h"
-
void
g_thread_init (gpointer init)
{
- static gboolean already_done;
-
if (init != NULL)
g_warning ("GThread system no longer supports custom thread implementations.");
-
- if (already_done)
- return;
-
- already_done = TRUE;
-
- g_thread_init_glib ();
}
void
g_thread_init_with_errorcheck_mutexes (gpointer vtable)
{
g_assert (vtable == NULL);
-
- g_thread_init (NULL);
}