pub fn acquire() -> GILGuard {
        prepare_freethreaded_python();

        unsafe {
            let gstate = ffi::PyGILState_Ensure(); // acquire GIL
            let pool: &'static mut ReleasePool = &mut *POOL;
            GILGuard { owned: pool.owned.len(),
                       borrowed: pool.borrowed.len(),
                       gstate: 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 {
        prepare_freethreaded_python();
        unsafe {
            let gstate = ffi::PyGILState_Ensure(); // acquire GIL
            let pool: &'static mut ReleasePool = &mut *POOL;
            GILGuard { owned: pool.owned.len(),
                       borrowed: pool.borrowed.len(),
                       gstate: gstate,
                       no_send: marker::PhantomData }
        }
    }
pub fn acquire ( ) -> GILGuard { prepare_freethreaded_python ( ) ; unsafe { let gstate = ffi :: PyGILState_Ensure ( ) ; // acquire GIL let pool : & ' static mut ReleasePool = & mut * POOL ; GILGuard { owned : pool . owned . len ( ) , borrowed : pool . borrowed . len ( ) , gstate : 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 .