Root lock
root_lock
Process-wide serialization of scaffold writes by canonical target root.
Every scaffold kind writing into a project root shares this single registry, so a learning-profile write and a protocol-profile write aimed at the same root exclude each other instead of each holding its own private lock.
target_root_lock(root)
Hold the process-wide lock guarding writes on the canonical root.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path
|
The target root, resolved before lookup so that distinct spellings of one directory share a single lock. |
required |
Yields:
| Type | Description |
|---|---|
None
|
|