Task.setLock

Set the mutex used by the task. The mutex will be acquired before calling the #GstTaskFunction.

This function has to be called before calling gst.task.Task.pause or gst.task.Task.start.

MT safe.

class Task
void
setLock

Parameters

mutex glib.rec_mutex.RecMutex

The #GRecMutex to use