MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / check

Method check

src/pythonrun.rs:136–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 /// This method is only available with Python 3.
135 #[cfg(feature = "python3-sys")]
136 pub fn check() -> bool {
137 let gstate = unsafe { ffi::PyGILState_Check() };
138 gstate == 1
139 }
140}
141
142/// Mutex-like wrapper object for data that is protected by the Python GIL.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected