Skip to main content

Module workdir_lock

Module workdir_lock 

Source
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§

WorkdirLock
Exclusive lock on a directory, released on drop.

Enums§

LockError
Why a WorkdirLock could not be acquired.