pub fn try_lock_shared(f: &File) -> Result<bool>
Shared counterpart of try_lock_exclusive: Ok(false) when an exclusive holder exists.
try_lock_exclusive