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

Function clear_user_signal

crates/stdlib/src/faulthandler.rs:1030–1041  ·  view source on GitHub ↗
(signum: usize)

Source from the content-addressed store, hash-verified

1028 }
1029
1030 pub fn clear_user_signal(signum: usize) -> Option<UserSignal> {
1031 let mut guard = USER_SIGNALS.lock();
1032 if let Some(ref mut v) = *guard
1033 && signum < v.len()
1034 && v[signum].enabled
1035 {
1036 let old = v[signum];
1037 v[signum] = UserSignal::default();
1038 return Some(old);
1039 }
1040 None
1041 }
1042
1043 pub fn is_enabled(signum: usize) -> bool {
1044 let guard = USER_SIGNALS.lock();

Callers 1

unregisterFunction · 0.85

Calls 3

SomeClass · 0.50
lockMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected