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

Method drop

crates/common/src/lock/thread_mutex.rs:272–274  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

270}
271impl<R: RawMutex, G: GetThreadId, T: ?Sized> Drop for ThreadMutexGuard<'_, R, G, T> {
272 fn drop(&mut self) {
273 unsafe { self.mu.raw.unlock() }
274 }
275}
276impl<R: RawMutex, G: GetThreadId, T: ?Sized + fmt::Display> fmt::Display
277 for ThreadMutexGuard<'_, R, G, T>

Callers

nothing calls this directly

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected