RWLock.writerTrylock

Tries to obtain a write lock on rw_lock. If another thread currently 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