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

Method lock_shared_recursive

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

Source from the content-addressed store, hash-verified

183unsafe impl RawRwLockRecursive for RawCellRwLock {
184 #[inline]
185 fn lock_shared_recursive(&self) {
186 if !self.try_lock_shared_recursive() {
187 deadlock("recursively+sharedly ", "RwLock")
188 }
189 }
190
191 #[inline]
192 fn try_lock_shared_recursive(&self) -> bool {

Callers

nothing calls this directly

Calls 2

deadlockFunction · 0.85

Tested by

no test coverage detected