pub fn block_flock_deadline<P: AsRef<Path>>(
path: P,
mode: FlockMode,
deadline: Instant,
) -> Result<Option<OwnedFd>>Expand description
Deadline-bounded BLOCKING flock(2) with no tick observation:
loops block_flock_step until granted or the deadline expires.
Used where the caller has nothing to re-evaluate mid-wait — e.g.
a contended acquirer parking on the acquisition-queue ticket.
Returns Ok(Some(fd)) when granted before deadline, Ok(None)
on expiry, Err on open / unexpected-errno failures.