just 0.4.3

🤖 Just a command runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::common::*;

pub struct InterruptGuard;

impl InterruptGuard {
  pub fn new() -> InterruptGuard {
    InterruptHandler::instance().block();
    InterruptGuard
  }
}

impl Drop for InterruptGuard {
  fn drop(&mut self) {
    InterruptHandler::instance().unblock();
  }
}