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

Function deadlock

crates/common/src/lock/cell_lock.rs:206–208  ·  view source on GitHub ↗
(lock_kind: &str, ty: &str)

Source from the content-addressed store, hash-verified

204#[cold]
205#[inline(never)]
206fn deadlock(lock_kind: &str, ty: &str) -> ! {
207 panic!("deadlock: tried to {lock_kind}lock a Cell{ty} twice")
208}
209
210#[derive(Clone, Copy)]
211pub struct SingleThreadId(());

Callers 6

lockMethod · 0.85
lock_sharedMethod · 0.85
lock_exclusiveMethod · 0.85
lock_upgradableMethod · 0.85
upgradeMethod · 0.85
lock_shared_recursiveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected