First THREADED backport attempt, focusing on adding locks and making sure the API...
[platform/upstream/gstreamer.git] / gst / gst.c
index e4becd9..5000685 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -815,77 +815,6 @@ init_popt_callback (poptContext context, enum poptCallbackReason reason,
 }
 
 /**
- * gst_use_threads:
- * @use_threads: a #gboolean indicating whether threads should be used
- *
- * Does nothing anymore. GStreamer requires threads to be enabled at all times.
- *
- * Deprecated: This function is deprecated and should not be used in new code.
- */
-void
-gst_use_threads (gboolean use_threads)
-{
-}
-
-/**
- * gst_has_threads:
- *
- * Queries if GStreamer has threads enabled.
- *
- * Returns: %TRUE if threads are enabled.
- * Deprecated: This function is deprecated and should not be used in new code.
- */
-gboolean
-gst_has_threads (void)
-{
-  return TRUE;
-}
-
-
-static GSList *mainloops = NULL;
-
-/**
- * gst_main:
- *
- * Enters the main GStreamer processing loop.
- *
- * This function duplicates functionality in glib, and will be removed
- * during the 0.9 development series.
- */
-void
-gst_main (void)
-{
-  GMainLoop *loop;
-
-  loop = g_main_loop_new (NULL, FALSE);
-  mainloops = g_slist_prepend (mainloops, loop);
-
-  g_main_loop_run (loop);
-}
-
-/**
- * gst_main_quit:
- *
- * Exits the main GStreamer processing loop.
- *
- * This function duplicates functionality in glib, and will be removed
- * during the 0.9 development series.
- */
-void
-gst_main_quit (void)
-{
-  if (!mainloops)
-    g_error ("Quit more loops than there are");
-  else {
-    GMainLoop *loop = mainloops->data;
-
-    mainloops = g_slist_delete_link (mainloops, mainloops);
-    g_main_loop_quit (loop);
-    g_main_loop_unref (loop);
-  }
-}
-
-/**
  * gst_version:
  * @major: pointer to a guint to store the major version number
  * @minor: pointer to a guint to store the minor version number