Mutex.lock

Locks mutex. If mutex is already locked by another thread, the current thread will block until mutex is unlocked by the other thread. This function can be used even if g_thread_init() has not yet been called, and, in that case, will do nothing. Note GMutex is neither guaranteed to be recursive nor to be non-recursive, i.e. a thread could deadlock while calling g_mutex_lock(), if it already has locked mutex. Use GStaticRecMutex, if you need recursive mutexes.

class Mutex
void
lock
()

Meta