Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ Lock
Class
Lock
crates/vm/src/stdlib/_thread.rs:118–120 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
116
#[pyclass(module =
"_thread"
, name =
"lock"
)]
117
#[derive(PyPayload)]
118
struct Lock {
119
mu: RawMutex,
120
}
121
122
impl fmt::Debug for Lock {
123
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Callers
2
__init__
Method · 0.90
__init__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected