Skip to main content

read_lock

Function read_lock 

Source
pub fn read_lock<'a, T: ?Sized>(
    lock: &'a RwLock<T>,
    context: &'static str,
) -> Result<RwLockReadGuard<'a, T>, LaneError>
Expand description

Acquires a read lock, mapping poisoning to LaneError::LockPoisoned.