interrupts 0.1.5

Cross-architecture utilities for temporarily disabling interrupts and signals.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cfg_if::cfg_if! {
    if #[cfg(all(unix, not(miri)))] {
        mod unix;
        pub use self::unix::*;
    } else if #[cfg(all(target_os = "none", target_arch = "aarch64"))] {
        mod aarch64;
        pub use self::aarch64::*;
    } else if #[cfg(all(target_os = "none", target_arch = "riscv64"))] {
        mod riscv64;
        pub use self::riscv64::*;
    } else if #[cfg(all(target_os = "none", target_arch = "x86_64"))] {
        mod x86_64;
        pub use self::x86_64::*;
    } else {
        mod unsupported;
        pub use self::unsupported::*;
    }
}