MT safe.
Task.this
this
(void * ptr, Flag!"Take" take)No documentation available for this declaration.
this
(gst.types.TaskFunction func)Create a new Task that will repeatedly call the provided func with user_data as a parameter. Typically the task will run in a new thread.
The function cannot be changed after the task has been created. You must create a new #GstTask to change the function.
This function will not yet create and start a thread. Use gst.task.Task.start or gst.task.Task.pause to create and start the GThread.
Before the task can be used, a #GRecMutex must be configured using the gst.task.Task.setLock function. This lock will always be acquired while func is called.
Parameters
func | The #GstTaskFunction to use |
Returns
A new #GstTask.