diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-04-08 21:17:14 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-04-08 21:17:46 +0100 |
commit | 0cfc3cf8a20d7d756b59321737e31b62415a6e7f (patch) | |
tree | 466cc73192feab7c5856e239412abfdaea8d09a2 /gst/gsttask.c | |
parent | e434ac1d3e226b8ab61fb005fc5f49e748f11099 (diff) | |
download | gstreamer-0cfc3cf8a20d7d756b59321737e31b62415a6e7f.tar.gz |
task: remove gst_task_set_priority()
It doesn't actually do anything.
Diffstat (limited to 'gst/gsttask.c')
-rw-r--r-- | gst/gsttask.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/gst/gsttask.c b/gst/gsttask.c index 27309047f8..96c687b771 100644 --- a/gst/gsttask.c +++ b/gst/gsttask.c @@ -96,9 +96,6 @@ struct _GstTaskPrivate gpointer thr_user_data; GDestroyNotify thr_notify; - gboolean prio_set; - GThreadPriority priority; - /* configured pool */ GstTaskPool *pool; @@ -190,7 +187,6 @@ gst_task_init (GstTask * task) task->lock = NULL; g_cond_init (&task->cond); SET_TASK_STATE (task, GST_TASK_STOPPED); - task->priv->prio_set = FALSE; /* use the default klass pool for this task, users can * override this later */ @@ -275,10 +271,6 @@ gst_task_func (GstTask * task) if (G_UNLIKELY (lock == NULL)) goto no_lock; task->thread = tself; - /* only update the priority when it was changed */ - if (priv->prio_set) { - GST_INFO_OBJECT (task, "Thread priorities no longer have any effect"); - } GST_OBJECT_UNLOCK (task); /* fire the enter_thread callback when we need to */ @@ -441,42 +433,6 @@ is_running: } /** - * gst_task_set_priority: - * @task: a #GstTask - * @priority: a new priority for @task - * - * Changes the priority of @task to @priority. - * - * Note: try not to depend on task priorities. - * - * MT safe. - * - * Since: 0.10.24 - */ -/* FIXME 0.11: remove gst_task_set_priority() */ -void -gst_task_set_priority (GstTask * task, GThreadPriority priority) -{ - GstTaskPrivate *priv; - GThread *thread; - - g_return_if_fail (GST_IS_TASK (task)); - - priv = task->priv; - - GST_OBJECT_LOCK (task); - priv->prio_set = TRUE; - priv->priority = priority; - thread = task->thread; - if (thread != NULL) { - /* if this task already has a thread, we can configure the priority right - * away, else we do that when we assign a thread to the task. */ - GST_INFO_OBJECT (task, "Thread priorities no longer have any effect"); - } - GST_OBJECT_UNLOCK (task); -} - -/** * gst_task_get_pool: * @task: a #GstTask * |