Skip to main content

Module lock

Module lock 

Source
Expand description

Lock file operations for spec execution tracking

Provides functionality to create, read, remove, and check lock files that track which processes are currently working on specs.

Structs§

LockGuard
RAII guard that automatically removes lock file on drop

Functions§

create_lock
Create a lock file for a spec with the current process ID
is_locked
Check if a spec has an active lock file with a running process
read_lock
Read the PID from a lock file
remove_lock
Remove a lock file for a spec