Expand description
Directory lock facade for queue and daemon coordination.
Responsibilities:
- Expose lock acquisition, owner metadata, stale-lock handling, and PID liveness helpers.
- Keep concurrency-critical concerns split into focused submodules.
Not handled here:
- Queue mutation or config validation.
- Cross-machine or distributed locking.
Invariants/assumptions:
- Callers hold
DirLockfor the full critical section. - The lock directory path is stable for the resource being protected.
- The
tasklabel remains reserved for shared supervisor/task lock semantics.
Structs§
Enums§
- PidLiveness
- Tri-state PID liveness result.