RWLock.writerTrylock

Tries to obtain a write lock on rw_lock. If any other thread holds a read or write lock on rw_lock, it immediately returns FALSE. Otherwise it locks rw_lock and returns TRUE. Since 2.32

class RWLock
int
writerTrylock
()

Return Value

Type: int

TRUE if rw_lock could be locked

Meta