RWLock.writerTrylock

Tries to lock lock for writing. If lock is already locked (for either reading or writing) by another thread, it immediately returns FALSE. Otherwise it locks lock for writing and returns TRUE. This lock has to be unlocked by g_static_rw_lock_writer_unlock().

class RWLock
int
writerTrylock
()

Return Value

Type: int

TRUE, if lock could be locked for writing.

Meta