14 #include "tbb/concurrent_unordered_map.h" 20 namespace eventsetup {
23 std::size_t operator()(
EventSetupRecordKey const& iKey)
const {
return iKey.type().value().hash_code(); }
26 tbb::concurrent_unordered_map<EventSetupRecordKey, DepFunction, KeyHash>& getMap() {
27 static tbb::concurrent_unordered_map<EventSetupRecordKey, DepFunction, KeyHash> s_map;
34 auto itFind =
map.find(iKey);
35 if (itFind !=
map.end()) {
36 return itFind->second();
38 return std::set<EventSetupRecordKey>();
std::set< EventSetupRecordKey >(*)( DepFunction)
std::set< EventSetupRecordKey > dependencies(EventSetupRecordKey const &)
void addDependencyFunction(EventSetupRecordKey iKey, DepFunction iFunction)