[][src]Macro tari_utilities::acquire_lock

macro_rules! acquire_lock {
    ($e:expr, $m:ident) => { ... };
    ($e:expr) => { ... };
}

This macro unlocks a Mutex or RwLock. If the lock is poisoned (i.e. a panic before a MutexGuard / RwLockGuard is dropped) the last value before the panic occurred is used.

This macro should not be used if the implementation should fail a if the lock was poisoned.