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

Function UnregisterWait

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

Source from the content-addressed store, hash-verified

1800
1801 #[pyfunction]
1802 fn UnregisterWait(wait_handle: isize, vm: &VirtualMachine) -> PyResult<()> {
1803 use windows_sys::Win32::System::Threading::UnregisterWait;
1804
1805 let ret = unsafe { UnregisterWait(wait_handle as HANDLE) };
1806 // Cleanup callback data regardless of UnregisterWait result
1807 // (callback may have already fired, or may never fire)
1808 cleanup_wait_callback_data(wait_handle);
1809 if ret == 0 {
1810 return Err(set_from_windows_err(0, vm));
1811 }
1812 Ok(())
1813 }
1814
1815 #[pyfunction]
1816 fn UnregisterWaitEx(wait_handle: isize, event: isize, 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