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.

class RWLock
bool
writerTrylock
()

Return Value

Type: bool

TRUE if rw_lock could be locked

Meta

Since

2.32