pub fn acquire() -> GILGuard {
        if !cfg!(feature = "no-auto-initialize") {
            crate::pythonrun::prepare_freethreaded_python();
        }
        let gstate = unsafe { ffi::PyGILState_Ensure() }; // acquire GIL
        GILGuard {
            gstate,
            no_send: marker::PhantomData,
        }
    }
/// Acquires the global interpreter lock, which allows access to the Python runtime.
///
/// If the Python runtime is not already initialized, this function will initialize it.
/// See [prepare_freethreaded_python()](fn.prepare_freethreaded_python.html) for details.
Acquires the global interpreter lock, which allows access to the Python runtime.
If the Python runtime is not already initialized, this function will initialize it.
Acquires the global interpreter lock which allows access to the Python runtime . If the Python runtime is not already initialized this function will initialize it .
pub fn acquire() -> GILGuard {
        if !cfg!(feature = "no-auto-initialize") {
            crate::pythonrun::prepare_freethreaded_python();
        }
        let gstate = unsafe { ffi::PyGILState_Ensure() }; // acquire GIL
        GILGuard {
            gstate,
            no_send: marker::PhantomData,
        }
    }
pub fn acquire ( ) -> GILGuard { if ! cfg ! ( feature " " ) { crate :: pythonrun :: prepare_freethreaded_python ( ) ; } let gstate = unsafe { ffi :: PyGILState_Ensure ( ) } ; // acquire GIL GILGuard { gstate , no_send : marker :: PhantomData , } }
Acquires the global interpreter lock, which allows access to the Python runtime.
Acquires the global interpreter lock which allows access to the Python runtime .