gix_features::threading

Function downgrade_mut_to_ref

source
pub fn downgrade_mut_to_ref<'a, T>(
    v: RwLockWriteGuard<'a, T>,
    _orig: &'a MutableOnDemand<T>,
) -> RefGuard<'a, T>
Available on crate feature parallel only.
Expand description

Downgrade a handle previously obtained with get_mut() to drop mutation support.