Skip to main content

Module lock

Module lock 

Source
Expand description

Exclusive lock on the state directory.

byssusd holds the lock for its lifetime; byssus reconcile takes it for one pass. Two writers therefore never race on the state file.

Structs§

StateLock
A held lock; released when dropped.

Enums§

LockError
Why the lock could not be taken.

Constants§

LOCK_FILE_NAME
Lock file name within the state directory.