gst.task_pool
Module for [TaskPool] class
Types 3
classTaskPool : gst.object.ObjectWrap
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
TaskPoolGidBuilder builder()Get builder for [gst.task_pool.TaskPool] Returns: New builder objectvoid 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.