From d52114d449533d5f5f17474b558c421f1a1ad0ca Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 11 May 2009 23:44:42 +0200 Subject: [PATCH] Task: remove create/join methods Prepare for using the GstTaskPool object. We don't need the create and join callbacks anymore, they will be handled by the pool. --- gst/gsttask.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gst/gsttask.h b/gst/gsttask.h index a160441a12..c044c1bd7f 100644 --- a/gst/gsttask.h +++ b/gst/gsttask.h @@ -109,23 +109,20 @@ typedef enum { #define GST_TASK_GET_LOCK(task) (GST_TASK_CAST(task)->lock) /** - * GstTaskCallbacks: - * @create_thread: Create a thread that calls @func with @task as the argument - * @enter_thread: a thread is entered - * @leave_thread: a thread is exiting - * @join_thread: a thread is joined + * GstTaskThreadCallbacks: + * @enter_thread: a thread is entered, this callback is called when the new + * thread enters its function. + * @leave_thread: a thread is exiting, this is called when the thread is about + * to leave its function * * Custom GstTask thread callback functions that can be installed. * * Since: 0.10.24 */ typedef struct { - /* creating threads */ - GThread * (*create_thread) (GstTask *task, GThreadFunc func, gpointer user_data); /* manage the lifetime of the thread */ void (*enter_thread) (GstTask *task, GThread *thread, gpointer user_data); void (*leave_thread) (GstTask *task, GThread *thread, gpointer user_data); - void (*join_thread) (GstTask *task, GThread *thread, gpointer user_data); /*< private >*/ gpointer _gst_reserved[GST_PADDING]; } GstTaskThreadCallbacks;