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

Method lock_shared

crates/common/src/lock/cell_lock.rs:77–81  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

75
76 #[inline]
77 fn lock_shared(&self) {
78 if !self.try_lock_shared() {
79 deadlock("sharedly ", "RwLock")
80 }
81 }
82
83 #[inline]
84 fn try_lock_shared(&self) -> bool {

Callers

nothing calls this directly

Calls 2

deadlockFunction · 0.85
try_lock_sharedMethod · 0.80

Tested by

no test coverage detected