Skip to main content

try_lock_exclusive

Function try_lock_exclusive 

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

Attempts to acquire an exclusive process-held lock without blocking.

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