pub trait TaskPoolExtManual: Sealed + IsA<TaskPool> + 'static {
    // Provided method
    fn push<P: FnOnce() + Send + 'static>(
        &self,
        func: P
    ) -> Result<Option<TaskPoolTaskHandle>, Error> { ... }
}

Provided Methods§

source

fn push<P: FnOnce() + Send + 'static>( &self, func: P ) -> Result<Option<TaskPoolTaskHandle>, Error>

Start the execution of a new thread from self.

§func

the function to call

§Returns

a pointer that should be used for the gst_task_pool_join function. This pointer can be None, you must check error to detect errors. If the pointer is not None and gst_task_pool_join() is not used, call gst_task_pool_dispose_handle() instead.

Object Safety§

This trait is not object safe.

Implementors§