(and has to unlock it as many times to actually unlock it).
gda.lockable_mixin
Module for [Lockable] interface mixin
Templates 2
Locks lockable. If it is already locked by another thread, the current thread will block until it is unlocked by the other thread.
This function can be used even if [glib.thread.Thread.init_] has not yet been called, and, in that case, will do nothing.
Note
Tries to lock lockable. If it is already locked by another thread, then it immediately returns FALSE, otherwise it locks lockable.
This function can be used even if [glib.thread.Thread.init_] has not yet been called, and, in that case, will do nothing.
Note
(and has to unlock it as many times to actually unlock it).
Returns
Unlocks lockable. This method should not be called if the current does not already holds a lock on lockable (having used [gda.lockable.Lockable.lock] or [gda.lockable.Lockable.trylock]).
This function can be used even if [glib.thread.Thread.init_] has not yet been called, and, in that case, will do nothing.