TaskPool
Object Hierarchy:
Description:
[
CCode ( type_id =
"gst_task_pool_get_type ()" ) ]
public class TaskPool :
Object
This object provides an abstraction for creating threads.
The default implementation uses a regular GThreadPool to start tasks.
Subclasses can be made to create custom threads.
Content:
Creation methods:
Methods:
- public virtual void cleanup ()
Wait for all tasks to be stopped.
- public virtual void dispose_handle (void* id)
Dispose of the handle returned by
push.
- public virtual void join (void* id)
Join a task and/or return it to the pool.
- public virtual void prepare () throws Error
Prepare the taskpool for accepting
push operations.
- public virtual void* push (TaskPoolFunction func) throws Error
Start the execution of a new thread from this
.
Inherited Members:
All known members inherited from class Gst.Object
All known members inherited from class GLib.Object