RWLock.writerLock

void writerLock()

Obtain a write lock on rw_lock. If another thread currently holds a read or write lock on rw_lock, the current thread will block until all other threads have dropped their locks on rw_lock.

Calling [glib.rwlock.RWLock.writerLock] while the current thread already owns a read or write lock on rw_lock leads to undefined behaviour.