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

Method drop

crates/stdlib/src/multiprocessing.rs:84–90  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

82
83 impl Drop for SemHandle {
84 fn drop(&mut self) {
85 if self.raw != 0 as HANDLE && self.raw != INVALID_HANDLE_VALUE {
86 unsafe {
87 CloseHandle(self.raw);
88 }
89 }
90 }
91 }
92
93 /// _GetSemaphoreValue - get value of semaphore by briefly acquiring and releasing

Callers

nothing calls this directly

Calls 1

CloseHandleFunction · 0.85

Tested by

no test coverage detected