| 415 | } |
| 416 | |
| 417 | const hcf_kernel_info * |
| 418 | hcf_cache::get_kernel_info(hcf_object_id obj, |
| 419 | std::string_view kernel_name) const { |
| 420 | std::lock_guard<std::mutex> lock{_mutex}; |
| 421 | auto it = _hcf_kernel_info.find(generate_info_id(obj, kernel_name)); |
| 422 | if(it == _hcf_kernel_info.end()) |
| 423 | return nullptr; |
| 424 | return it->second.get(); |
| 425 | } |
| 426 | |
| 427 | const hcf_kernel_info * |
| 428 | hcf_cache::get_kernel_info(hcf_object_id obj, |