Skip to main content

amd_order_interruptible

Function amd_order_interruptible 

Source
pub fn amd_order_interruptible(
    pattern: &CscPattern<'_>,
    opts: &AmdOptions,
    interrupt: &Interrupt,
) -> Result<(Vec<i32>, OrderingStats, AmdStats), OrderingError>
Expand description

amd_order_full that stops with OrderingError::Interrupted once interrupt triggers (its deadline passes or its cancel flag is set) (feral issue #246). The check runs at safe points inside the ordering, so the overshoot past a deadline is bounded by one of them rather than by the whole ordering. With Interrupt::none the result is identical to amd_order_full.