Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ try_lock_upgradable
Method
try_lock_upgradable
crates/common/src/lock/cell_lock.rs:143–146 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
141
142
#[inline]
143
fn try_lock_upgradable(&self) -> bool {
144
// defer to normal -- we can always try to upgrade
145
self.try_lock_shared()
146
}
147
148
#[inline]
149
unsafe fn unlock_upgradable(&self) {
Callers
1
lock_upgradable
Method · 0.80
Calls
1
try_lock_shared
Method · 0.80
Tested by
no test coverage detected