gst.task_pool

Module for [TaskPool] class

Types 3

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.

Methods
GType _gType() @property
TaskPool self()Returns `this`, for use in `with` statements.
TaskPoolGidBuilder builder()Get builder for [gst.task_pool.TaskPool] Returns: New builder object
void cleanup()Wait for all tasks to be stopped. This is mainly used internally to ensure proper cleanup of internal data structures in test suites.
void disposeHandle(void * id = null)Dispose of the handle returned by [gst.taskpool.TaskPool.push]. This does not need to be called with the default implementation as the default #GstTaskPoolClass::push implementation always returns ...
void join(void * id = null)Join a task and/or return it to the pool. id is the id obtained from [gst.task_pool.TaskPool.push]. The default implementation does nothing, as the default #GstTaskPoolClass::push implementation al...
void prepare()Prepare the taskpool for accepting [gst.task_pool.TaskPool.push] operations.
void * push(gst.types.TaskPoolFunction func)Start the execution of a new thread from pool.
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new default task pool. The default task pool will use a regular GThreadPool for threads. Returns: a new #GstTaskPool. [gst.object.ObjectWrap.unref] after usage.

Fluent builder for [gst.task_pool.TaskPool]

Methods