mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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.
This commit is contained in:
parent
a830dcd9c2
commit
d52114d449
1 changed files with 5 additions and 8 deletions
|
@ -109,23 +109,20 @@ typedef enum {
|
||||||
#define GST_TASK_GET_LOCK(task) (GST_TASK_CAST(task)->lock)
|
#define GST_TASK_GET_LOCK(task) (GST_TASK_CAST(task)->lock)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstTaskCallbacks:
|
* GstTaskThreadCallbacks:
|
||||||
* @create_thread: Create a thread that calls @func with @task as the argument
|
* @enter_thread: a thread is entered, this callback is called when the new
|
||||||
* @enter_thread: a thread is entered
|
* thread enters its function.
|
||||||
* @leave_thread: a thread is exiting
|
* @leave_thread: a thread is exiting, this is called when the thread is about
|
||||||
* @join_thread: a thread is joined
|
* to leave its function
|
||||||
*
|
*
|
||||||
* Custom GstTask thread callback functions that can be installed.
|
* Custom GstTask thread callback functions that can be installed.
|
||||||
*
|
*
|
||||||
* Since: 0.10.24
|
* Since: 0.10.24
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* creating threads */
|
|
||||||
GThread * (*create_thread) (GstTask *task, GThreadFunc func, gpointer user_data);
|
|
||||||
/* manage the lifetime of the thread */
|
/* manage the lifetime of the thread */
|
||||||
void (*enter_thread) (GstTask *task, GThread *thread, gpointer user_data);
|
void (*enter_thread) (GstTask *task, GThread *thread, gpointer user_data);
|
||||||
void (*leave_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 >*/
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
} GstTaskThreadCallbacks;
|
} GstTaskThreadCallbacks;
|
||||||
|
|
Loading…
Reference in a new issue