Skip to main content

lock_is_free

Function lock_is_free 

Source
fn lock_is_free(lock_path: &Path) -> bool
Expand description

True when nobody holds the lock (or the file doesn’t exist). Takes and immediately releases the lock; the srv spawned next takes it for real.