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

Method lock_upgradable

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

Source from the content-addressed store, hash-verified

134unsafe impl RawRwLockUpgrade for RawCellRwLock {
135 #[inline]
136 fn lock_upgradable(&self) {
137 if !self.try_lock_upgradable() {
138 deadlock("upgradably+sharedly ", "RwLock")
139 }
140 }
141
142 #[inline]
143 fn try_lock_upgradable(&self) -> bool {

Callers

nothing calls this directly

Calls 2

deadlockFunction · 0.85
try_lock_upgradableMethod · 0.80

Tested by

no test coverage detected