MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_signal_handlers

Function new_signal_handlers

crates/vm/src/signal.rs:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10pub(crate) const NSIG: usize = 64;
11
12pub(crate) fn new_signal_handlers() -> Box<RefCell<[Option<PyObjectRef>; NSIG]>> {
13 Box::new(const { RefCell::new([const { None }; NSIG]) })
14}
15static ANY_TRIGGERED: AtomicBool = AtomicBool::new(false);
16// hack to get around const array repeat expressions, rust issue #79270
17#[allow(

Callers 1

newMethod · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected