Skip to main content

Module locks

Module locks 

Source
Expand description

File lock operations (advisory and exclusive) and claim tracking.

Two lock modes are supported:

  • Advisory marks (default): mark_file("src/main.rs") - warns if another agent holds the mark, but allows it.
  • Exclusive locks (lock: prefix): mark_file("lock:git-commit") - rejects with an error if another agent holds the lock. Used for mutual exclusion on shared resources.

Enumsยง

ExclusiveLockResult
Result of an exclusive lock attempt.