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

Function SetEvent

crates/stdlib/src/overlapped.rs:1972–1978  ·  view source on GitHub ↗
(handle: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1970
1971 #[pyfunction]
1972 fn SetEvent(handle: isize, vm: &VirtualMachine) -> PyResult<()> {
1973 let ret = unsafe { windows_sys::Win32::System::Threading::SetEvent(handle as HANDLE) };
1974 if ret == 0 {
1975 return Err(set_from_windows_err(0, vm));
1976 }
1977 Ok(())
1978 }
1979
1980 #[pyfunction]
1981 fn ResetEvent(handle: isize, vm: &VirtualMachine) -> PyResult<()> {

Callers 1

mark_as_completedFunction · 0.70

Calls 2

set_from_windows_errFunction · 0.85
ErrClass · 0.50

Tested by

no test coverage detected