| 94 | /// ``` |
| 95 | #[must_use] |
| 96 | pub 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. |
| 104 | impl Drop for GILGuard { |
nothing calls this directly
no outgoing calls
no test coverage detected