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: unlike glib.mutex.Mutex.lock, this method recursive, which means a thread can lock lockable several times
(and has to unlock it as many times to actually unlock it).
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: unlike glib.mutex.Mutex.lock, this method recursive, which means a thread can lock lockable several times (and has to unlock it as many times to actually unlock it).