Crate alive_lock_file

Source

Structs§

Lock
Represent a lock file. When this value is dropped, the corresponding lock file will be removed.

Enums§

LockResult
LockResultWithDrop

Functions§

is_locked
Return true if this name is locked.
remove_lock
Remove the lock if exist. Return true if successfully removed, false if there was no lock.
try_lock
Try to acquire the lock.
try_lock_until_dropped
Try to acquire the lock, and unlock when the Lock is dropped.