Function tryLock [src]

Attempts to obtain exclusive lock ownership. Returns true if the lock is obtained, false otherwise.

Prototype

pub fn tryLock(rwl: *RwLock) bool

Parameters

rwl: *RwLock

Source

pub fn tryLock(rwl: *RwLock) bool { return rwl.impl.tryLock(); }