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

Method acquire_gil

src/python.rs:229–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227 /// See [prepare_freethreaded_python()](fn.prepare_freethreaded_python.html) for details.
228 #[inline]
229 pub fn acquire_gil() -> GILGuard {
230 GILGuard::acquire()
231 }
232
233 /// Temporarily releases the GIL, thus allowing other Python threads to run.
234 pub fn allow_threads<T, F>(self, f: F) -> T

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected