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

Method lock_exclusive

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

Source from the content-addressed store, hash-verified

100
101 #[inline]
102 fn lock_exclusive(&self) {
103 if !self.try_lock_exclusive() {
104 deadlock("exclusively ", "RwLock")
105 }
106 self.state.set(WRITER_BIT)
107 }
108
109 #[inline]
110 fn try_lock_exclusive(&self) -> bool {

Callers

nothing calls this directly

Calls 3

deadlockFunction · 0.85
try_lock_exclusiveMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected