Skip to main content

ordered_write_lock

Function ordered_write_lock 

Source
pub fn ordered_write_lock<'a, R: RwLockLike>(
    r1: &'a R,
    r2: &'a R,
) -> (R::WriteGuard<'a>, R::WriteGuard<'a>)
Expand description

Lock r1 and r2 in a consistent order (using the memory address of r1 and r2) for writing.