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