pub fn at_may_restart_syscall(&self) -> bool {
        let depth = self.pending_events.len();
        let prev_ev: Option<&Event> = if depth > 2 {
            Some(&self.pending_events[depth - 2])
        } else {
            None
        };
        EventType::EvSyscallInterruption == self.ev().event_type()
            || (EventType::EvSignalDelivery == self.ev().event_type()
                && prev_ev.is_some()
                && EventType::EvSyscallInterruption == prev_ev.unwrap().event_type())
    }
/// Return true iff this is at an execution state where
/// resuming execution may lead to the restart of an
/// interrupted syscall.
///
/// For example, if a signal without a user handler is about to
/// be delivered to this just after a syscall interruption,
/// then delivering the signal may restart the first syscall
/// and this method will return true.
Return true iff this is at an execution state where
resuming execution may lead to the restart of an
interrupted syscall.

For example, if a signal without a user handler is about to
be delivered to this just after a syscall interruption,
then delivering the signal may restart the first syscall
and this method will return true.
Return true iff this is at an execution state where resuming execution may lead to the restart of an interrupted syscall . For example if a signal without a user handler is about to be delivered to this just after a syscall interruption then delivering the signal may restart the first syscall and this method will return true .
pub fn at_may_restart_syscall(&self) -> bool {
        let depth = self.pending_events.len();
        let prev_ev: Option<&Event> = if depth > 2 {
            Some(&self.pending_events[depth - 2])
        } else {
            None
        };
        EventType::EvSyscallInterruption == self.ev().event_type()
            || (EventType::EvSignalDelivery == self.ev().event_type()
                && prev_ev.is_some()
                && EventType::EvSyscallInterruption == prev_ev.unwrap().event_type())
    }
pub fn at_may_restart_syscall ( & self ) -> bool { let depth = self . pending_events . len ( ) ; let prev_ev : Option < & Event > = if depth > 2 { Some ( & self . pending_events [ depth - 2 ] ) } else { None } ; EventType :: EvSyscallInterruption == self . ev ( ) . event_type ( ) || ( EventType :: EvSignalDelivery == self . ev ( ) . event_type ( ) && prev_ev . is_some ( ) && EventType :: EvSyscallInterruption == prev_ev . unwrap ( ) . event_type ( ) ) }
Return true iff this is at an execution state where
resuming execution may lead to the restart of an
interrupted syscall.
Return true iff this is at an execution state where resuming execution may lead to the restart of an interrupted syscall .
&self