MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / env_lock

Function env_lock

crates/openshell-core/src/image.rs:56–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 use std::sync::{Mutex, OnceLock};
55
56 fn env_lock() -> &'static Mutex<()> {
57 static ENV_LOCK: OnceLock<Mutex<()>> = OnceLock::new();
58 ENV_LOCK.get_or_init(|| Mutex::new(()))
59 }
60
61 #[test]
62 fn bare_name_expands_to_community_registry() {

Calls

no outgoing calls