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

Class GILGuard

src/pythonrun.rs:96–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94/// ```
95#[must_use]
96pub struct GILGuard {
97 gstate: ffi::PyGILState_STATE,
98 // hack to opt out of Send on stable rust, which doesn't
99 // have negative impls
100 no_send: marker::PhantomData<rc::Rc<()>>,
101}
102
103/// The Drop implementation for GILGuard will release the GIL.
104impl Drop for GILGuard {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected