Expand description
Concurrent startup locking with stale-lock recovery, and file-level locking
for safe concurrent writes to .aplan files.
Only one instance of a named lock can be held at a time. Locks older than
STALE_THRESHOLD whose owning process is no longer alive are automatically
recovered.
Structs§
- File
Lock - File-level lock for
.aplanfiles. Creates a.aplan.locksidecar that prevents concurrent writes to the same planning file. - Startup
Lock - A PID-based lock file that auto-cleans on drop.
Enums§
Functions§
- lock_
path_ for - Compute the
.aplan.locksidecar path for a given.aplanfile.