Skip to main content

try_lock_once

Function try_lock_once 

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

Attempts one nonblocking exclusive lock on an already-open file.

true means the lock was acquired; false means it is held elsewhere.