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.

Return: %TRUE if @rw_lock could be locked

class RWLock
bool
writerTrylock
()

Meta

Since

2.32