Expand description
Lock file management.
Structs§
- Lock
Guard - A guard that releases the system-wide lock when dropped.
Functions§
- acquire_
lock - Acquires a system-wide lock to prevent concurrent modifications to the Zoi store.
- release_
lock - Returns an error because only dropping the owning
LockGuardcan release the advisory lock. The lock file itself is intentionally never removed because unlinking it can let a waiting process and a newly-created inode be locked concurrently.