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 Task.pause or Task.start.

MT safe.

class Task
void
setLock

Parameters

mutex RecMutex

The glib.RecMutex to use