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 _getGType() static nothrow
GType _gType() @property nothrow
TaskPool self() nothrowReturns `this`, for use in `with` statements.
TaskPoolGidBuilder builder() static nothrowGet builder for [gst.task_pool.TaskPool] Returns: New builder object
void cleanup() nothrowWait 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) nothrowDispose of the handle returned by [gst.task_pool.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) nothrowJoin 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 implementation template for gst.task_pool.TaskPool

Fluent builder for gst.task_pool.TaskPool

Methods
TaskPool build() nothrowCreate object from builder. Returns: New object