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

Function UnregisterWaitEx

crates/stdlib/src/overlapped.rs:1816–1826  ·  view source on GitHub ↗
(wait_handle: isize, event: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1814
1815 #[pyfunction]
1816 fn UnregisterWaitEx(wait_handle: isize, event: isize, vm: &VirtualMachine) -> PyResult<()> {
1817 use windows_sys::Win32::System::Threading::UnregisterWaitEx;
1818
1819 let ret = unsafe { UnregisterWaitEx(wait_handle as HANDLE, event as HANDLE) };
1820 // Cleanup callback data regardless of UnregisterWaitEx result
1821 cleanup_wait_callback_data(wait_handle);
1822 if ret == 0 {
1823 return Err(set_from_windows_err(0, vm));
1824 }
1825 Ok(())
1826 }
1827
1828 #[pyfunction]
1829 fn BindLocal(socket: isize, family: i32, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 3

set_from_windows_errFunction · 0.85
ErrClass · 0.50

Tested by

no test coverage detected