mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
taskpool: modify transfer annotations for push() and join()
While the default implementation passes NULL around as the task handle, other implementations can only provide a safe API by having that handle map to a refcounted opaque type. While what's passed around is a gpointer, a valid transfer type annotation has informative value. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/692>
This commit is contained in:
parent
20f6a2ece4
commit
c884f4c124
1 changed files with 2 additions and 2 deletions
|
@ -233,7 +233,7 @@ gst_task_pool_cleanup (GstTaskPool * pool)
|
|||
*
|
||||
* Start the execution of a new thread from @pool.
|
||||
*
|
||||
* Returns: (transfer none) (nullable): a pointer that should be used
|
||||
* Returns: (transfer full) (nullable): 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.
|
||||
*/
|
||||
|
@ -263,7 +263,7 @@ not_supported:
|
|||
/**
|
||||
* gst_task_pool_join:
|
||||
* @pool: a #GstTaskPool
|
||||
* @id: the id
|
||||
* @id: (transfer full): the id
|
||||
*
|
||||
* Join a task and/or return it to the pool. @id is the id obtained from
|
||||
* gst_task_pool_push().
|
||||
|
|
Loading…
Reference in a new issue