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

Method release_lock

crates/vm/src/warn.rs:86–93  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

84 }
85
86 pub fn release_lock(&self) -> bool {
87 let prev = self.lock_count.load(Ordering::SeqCst);
88 if prev == 0 {
89 return false;
90 }
91 self.lock_count.fetch_sub(1, Ordering::SeqCst);
92 true
93 }
94
95 pub fn filters_mutated(&self) {
96 self.filters_version.fetch_add(1, Ordering::SeqCst);

Callers 9

importerMethod · 0.80
fork_with_import_lockMethod · 0.80
cbFunction · 0.80
_get_module_lockFunction · 0.80
__exit__Method · 0.80
cbFunction · 0.80
_get_module_lockFunction · 0.80
__exit__Method · 0.80
_release_lockFunction · 0.80

Calls 1

loadMethod · 0.45

Tested by 2

importerMethod · 0.64
fork_with_import_lockMethod · 0.64