MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / get_hcf

Method get_hcf

src/runtime/kernel_cache.cpp:408–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408const common::hcf_container* hcf_cache::get_hcf(hcf_object_id obj) const {
409 std::lock_guard<std::mutex> lock{_mutex};
410
411 auto it = _hcf_objects.find(obj);
412 if(it == _hcf_objects.end())
413 return nullptr;
414 return it->second.get();
415}
416
417const hcf_kernel_info *
418hcf_cache::get_kernel_info(hcf_object_id obj,

Calls 3

findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected