Skip to main content

try_lock_shared

Function try_lock_shared 

Source
pub fn try_lock_shared(f: &File) -> Result<bool>
Expand description

Shared counterpart of try_lock_exclusive: Ok(false) when an exclusive holder is alive. Read-only handles suffice on every supported platform. Used by the page-WAL reader admission (ownership probe, admission gate).