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

Method _get_value

crates/stdlib/src/multiprocessing.rs:310–312  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

308
309 #[pymethod]
310 fn _get_value(&self, vm: &VirtualMachine) -> PyResult<i32> {
311 get_semaphore_value(self.handle.as_raw()).map_err(|_| vm.new_last_os_error())
312 }
313
314 #[pymethod]
315 fn _is_zero(&self, vm: &VirtualMachine) -> PyResult<bool> {

Callers 1

_is_zeroMethod · 0.45

Calls 7

get_semaphore_valueFunction · 0.85
os_errorFunction · 0.85
newFunction · 0.85
new_last_os_errorMethod · 0.80
ErrClass · 0.50
as_rawMethod · 0.45
as_ptrMethod · 0.45

Tested by

no test coverage detected