Searched refs:deadline_ns (Results 1 – 2 of 2) sorted by relevance
158 deadline_ns: Option<u64>, field169 deadline_ns: None, in new()185 self.deadline_ns = Some(deadline); in reset()197 if let Some(deadline_ns) = &mut self.deadline_ns { in wait()200 if now >= *deadline_ns { in wait()205 expirys += (now - *deadline_ns) / interval_ns; in wait()206 *deadline_ns += (expirys + 1) * interval_ns; in wait()207 guard.add_event_fd(*deadline_ns, self.fd.try_clone()?); in wait()218 Ok(self.deadline_ns.is_some()) in is_armed()223 self.deadline_ns = None; in clear()
95 pub fn add_event_fd(&mut self, deadline_ns: u64, fd: EventFd) { in add_event_fd()98 self.deadlines.push((deadline_ns, fd)); in add_event_fd()