Skip to main content

try_lock_shared

Function try_lock_shared 

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

Attempts to acquire a shared process-held lock without blocking.

Returns Ok(false) only when another process currently owns an exclusive lock.