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

Method is_locked

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

Source from the content-addressed store, hash-verified

44
45 #[inline]
46 fn is_locked(&self) -> bool {
47 self.locked.get()
48 }
49}
50
51const WRITER_BIT: usize = 0b01;

Callers 12

lockMethod · 0.80
try_lockMethod · 0.80
try_lock_exclusiveMethod · 0.80
release_lockFunction · 0.80
lock_heldFunction · 0.80
reinit_after_forkFunction · 0.80
releaseMethod · 0.80
lockedMethod · 0.80
repr_strMethod · 0.80
run_threadFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected