Expand description
A process-level lock on a directory: a PID-bearing lock file created
with create_new, reaped when its owner is provably dead. Guards
state a single process may write, e.g. a node’s .choir dir, where
two writers appending one ops.jsonl would fork the chain.
Ported from Oak cli/src/workdir_lock.rs (v0.102.1, commit
8de9515, Apache-2.0); error type localized to LockError.
Structs§
- Workdir
Lock - Exclusive lock on a directory, released on drop.
Enums§
- Lock
Error - Why a
WorkdirLockcould not be acquired.