projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
task: api cleanup
[platform/upstream/gstreamer.git]
/
gst
/
gsttask.c
diff --git
a/gst/gsttask.c
b/gst/gsttask.c
index
fba8c38
..
818a3fa
100644
(file)
--- a/
gst/gsttask.c
+++ b/
gst/gsttask.c
@@
-45,7
+45,7
@@
* and gst_task_stop() respectively or with the gst_task_set_state() function.
*
* A #GstTask will repeatedly call the #GstTaskFunction with the user data
* and gst_task_stop() respectively or with the gst_task_set_state() function.
*
* A #GstTask will repeatedly call the #GstTaskFunction with the user data
- * that was provided when creating the task with gst_task_
create
(). While calling
+ * that was provided when creating the task with gst_task_
new
(). While calling
* the function it will acquire the provided lock. The provided lock is released
* when the task pauses or stops.
*
* the function it will acquire the provided lock. The provided lock is released
* when the task pauses or stops.
*
@@
-83,7
+83,7
@@
GST_DEBUG_CATEGORY_STATIC (task_debug);
#define GST_CAT_DEFAULT (task_debug)
#define SET_TASK_STATE(t,s) (g_atomic_int_set (&GST_TASK_STATE(t), (s)))
#define GST_CAT_DEFAULT (task_debug)
#define SET_TASK_STATE(t,s) (g_atomic_int_set (&GST_TASK_STATE(t), (s)))
-#define GET_TASK_STATE(t) (g_atomic_int_get (&GST_TASK_STATE(t)))
+#define GET_TASK_STATE(t) (
(GstTaskState)
g_atomic_int_get (&GST_TASK_STATE(t)))
#define GST_TASK_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GST_TYPE_TASK, GstTaskPrivate))
#define GST_TASK_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GST_TYPE_TASK, GstTaskPrivate))
@@
-225,7
+225,7
@@
gst_task_finalize (GObject * object)
static void
gst_task_configure_name (GstTask * task)
{
static void
gst_task_configure_name (GstTask * task)
{
-#if
def HAVE_SYS_PRCTL_H
+#if
defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_NAME)
const gchar *name;
gchar thread_name[17] = { 0, };
const gchar *name;
gchar thread_name[17] = { 0, };
@@
-377,7
+377,7
@@
gst_task_cleanup_all (void)
}
/**
}
/**
- * gst_task_
create
:
+ * gst_task_
new
:
* @func: The #GstTaskFunction to use
* @data: (closure): User data to pass to @func
*
* @func: The #GstTaskFunction to use
* @data: (closure): User data to pass to @func
*
@@
-400,7
+400,7
@@
gst_task_cleanup_all (void)
* MT safe.
*/
GstTask *
* MT safe.
*/
GstTask *
-gst_task_
create
(GstTaskFunction func, gpointer data)
+gst_task_
new
(GstTaskFunction func, gpointer data)
{
GstTask *task;
{
GstTask *task;