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

Function SetEvent

crates/vm/src/stdlib/_winapi.rs:1265–1275  ·  view source on GitHub ↗
(event: WinHandle, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1263 /// SetEvent - Set the specified event object to the signaled state.
1264 #[pyfunction]
1265 fn SetEvent(event: WinHandle, vm: &VirtualMachine) -> PyResult<()> {
1266 use windows_sys::Win32::System::Threading::SetEvent as WinSetEvent;
1267
1268 let ret = unsafe { WinSetEvent(event.0) };
1269
1270 if ret == 0 {
1271 return Err(vm.new_last_os_error());
1272 }
1273
1274 Ok(())
1275 }
1276
1277 #[derive(FromArgs)]
1278 struct WriteFileArgs {

Callers 3

query_thread_implFunction · 0.70
run_signalFunction · 0.70
ConnectNamedPipeFunction · 0.70

Calls 2

new_last_os_errorMethod · 0.80
ErrClass · 0.50

Tested by

no test coverage detected