caps: _do_simplify() -> _simplify()
[platform/upstream/gstreamer.git] / gst / gsttaskpool.c
index e065fca..d5981e6 100644 (file)
@@ -40,9 +40,9 @@
 GST_DEBUG_CATEGORY_STATIC (taskpool_debug);
 #define GST_CAT_DEFAULT (taskpool_debug)
 
-static void gst_task_pool_class_init (GstTaskPoolClass * klass);
-static void gst_task_pool_init (GstTaskPool * pool);
+#ifndef GST_DISABLE_GST_DEBUG
 static void gst_task_pool_finalize (GObject * object);
+#endif
 
 #define _do_init \
 { \
@@ -128,7 +128,9 @@ gst_task_pool_class_init (GstTaskPoolClass * klass)
   gobject_class = (GObjectClass *) klass;
   gsttaskpool_class = (GstTaskPoolClass *) klass;
 
+#ifndef GST_DISABLE_GST_DEBUG
   gobject_class->finalize = gst_task_pool_finalize;
+#endif
 
   gsttaskpool_class->prepare = default_prepare;
   gsttaskpool_class->cleanup = default_cleanup;
@@ -141,6 +143,7 @@ gst_task_pool_init (GstTaskPool * pool)
 {
 }
 
+#ifndef GST_DISABLE_GST_DEBUG
 static void
 gst_task_pool_finalize (GObject * object)
 {
@@ -148,14 +151,16 @@ gst_task_pool_finalize (GObject * object)
 
   G_OBJECT_CLASS (gst_task_pool_parent_class)->finalize (object);
 }
-
+#endif
 /**
  * gst_task_pool_new:
  *
  * Create a new default task pool. The default task pool will use a regular
  * GThreadPool for threads.
  *
- * Returns: a new #GstTaskPool. gst_object_unref() after usage.
+ * Returns: (transfer full): a new #GstTaskPool. gst_object_unref() after usage.
+ *
+ * Since: 0.10.24
  */
 GstTaskPool *
 gst_task_pool_new (void)
@@ -175,6 +180,8 @@ gst_task_pool_new (void)
  * Prepare the taskpool for accepting gst_task_pool_push() operations.
  *
  * MT safe.
+ *
+ * Since: 0.10.24
  */
 void
 gst_task_pool_prepare (GstTaskPool * pool, GError ** error)
@@ -197,6 +204,8 @@ gst_task_pool_prepare (GstTaskPool * pool, GError ** error)
  * to ensure proper cleanup of internal data structures in test suites.
  *
  * MT safe.
+ *
+ * Since: 0.10.24
  */
 void
 gst_task_pool_cleanup (GstTaskPool * pool)
@@ -215,7 +224,7 @@ gst_task_pool_cleanup (GstTaskPool * pool)
  * gst_task_pool_push:
  * @pool: a #GstTaskPool
  * @func: the function to call
- * @user_data: data to pass to @func
+ * @user_data: (closure): data to pass to @func
  * @error: return location for an error
  *
  * Start the execution of a new thread from @pool.
@@ -223,6 +232,8 @@ gst_task_pool_cleanup (GstTaskPool * pool)
  * Returns: a pointer that should be used for the gst_task_pool_join
  * function. This pointer can be NULL, you must check @error to detect
  * errors.
+ *
+ * Since: 0.10.24
  */
 gpointer
 gst_task_pool_push (GstTaskPool * pool, GstTaskPoolFunction func,
@@ -254,6 +265,8 @@ not_supported:
  *
  * Join a task and/or return it to the pool. @id is the id obtained from 
  * gst_task_pool_push().
+ *
+ * Since: 0.10.24
  */
 void
 gst_task_pool_join (GstTaskPool * pool, gpointer id)