MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / registry

Function registry

src/picking.rs:278–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276static REGISTRY: OnceLock<Mutex<HashMap<u64, InstanceEntry>>> = OnceLock::new();
277
278fn registry() -> &'static Mutex<HashMap<u64, InstanceEntry>> {
279 REGISTRY.get_or_init(|| Mutex::new(HashMap::new()))
280}
281
282fn submit_request(instance_id: u64, req: GpuPickRequest) {
283 let mut map = registry().lock().unwrap();

Callers 4

submit_requestFunction · 0.85
take_resultFunction · 0.85
take_latest_requestFunction · 0.85
publish_resultFunction · 0.85

Calls 1

newFunction · 0.50

Tested by

no test coverage detected