Skip to main content

holder_identity

Function holder_identity 

Source
pub fn holder_identity(
    project_root: &Path,
    phase: PhaseId,
) -> Option<(u32, Option<u64>)>
Expand description

The recorded identity of a phase lock’s holder: its pid, and its start time when the lock records one.

Callers that intend to signal the holder must require the start time to be present and to match crate::agent::process_start_time for that pid. A None start time means the lock predates identity recording and the holder cannot be confirmed — refuse, do not guess.