(instance_id: u64)
| 289 | } |
| 290 | |
| 291 | fn take_result(instance_id: u64) -> Option<GpuPickResult> { |
| 292 | let mut map = registry().lock().unwrap(); |
| 293 | map.get_mut(&instance_id).and_then(|e| e.latest_res.take()) |
| 294 | } |
| 295 | |
| 296 | fn take_latest_request(instance_id: u64) -> Option<GpuPickRequest> { |
| 297 | let mut map = registry().lock().unwrap(); |
no test coverage detected