MCPcopy Index your code
hub / github.com/RustPython/RustPython / libcache

Function libcache

crates/vm/src/stdlib/_ctypes/library.rs:145–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145pub(super) fn libcache() -> &'static PyRwLock<ExternalLibs> {
146 rustpython_common::static_cell! {
147 static LIBCACHE: PyRwLock<ExternalLibs>;
148 }
149 LIBCACHE.get_or_init(|| PyRwLock::new(ExternalLibs::new()))
150}

Callers 6

load_library_windowsFunction · 0.85
load_library_unixFunction · 0.85
free_libraryFunction · 0.85
dlcloseFunction · 0.85
in_dllMethod · 0.85
slot_newMethod · 0.85

Calls 2

newFunction · 0.85
get_or_initMethod · 0.45

Tested by

no test coverage detected