Skip to main content

ordered_read_lock

Function ordered_read_lock 

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

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