pub unsafe fn raw_file_downgrade(f: &File, off: usize, len: usize) -> io::Result<()> {
    // Add a shared lock.
    raw_file_lock(f, Some(Lock::Shared), off, len, false)?;
    // Removed the exclusive lock.
    raw_file_lock(f, None, off, len, false)
}
/// Downgrades a file lock from exclusive to shared.
///
/// # Safety
///
/// This does not guarantee that an exclusive lock is already held.
Downgrades a file lock from exclusive to shared.
Downgrades a file lock from exclusive to shared .
pub unsafe fn raw_file_downgrade(f: &File, off: usize, len: usize) -> io::Result<()> {
    // Add a shared lock.
    raw_file_lock(f, Some(Lock::Shared), off, len, false)?;
    // Removed the exclusive lock.
    raw_file_lock(f, None, off, len, false)
}
pub unsafe fn raw_file_downgrade ( f : & File , off : usize , len : usize ) -> io :: Result < ( ) > { // Add a shared lock. raw_file_lock ( f , Some ( Lock :: Shared ) , off , len , false ) ? ; // Removed the exclusive lock. raw_file_lock ( f , None , off , len , false ) }
Downgrades a file lock from exclusive to shared.
Downgrades a file lock from exclusive to shared .
f
&File
off
usize
len
usize
f
&File
off
usize
len
usize
safety
This does not guarantee that an exclusive lock is already held.
This does not guarantee that an exclusive lock is already held .