Skip to main content

scope_safe_text_patch_lock_root

Function scope_safe_text_patch_lock_root 

Source
pub fn scope_safe_text_patch_lock_root(
    root: impl AsRef<Path>,
) -> ScopedSafeTextPatchLockRoot
Expand description

Route immediate safe-text-patch locks through a caller-owned execution root.

The override is thread-local so concurrent VM executions can keep their durable state separate without changing the process-wide production lock namespace. Callers should pass the fs-cas-locks directory under their execution state root and retain the returned guard for the execution.