()
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected