MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / TryLookup_

Method TryLookup_

IntelPresentMon/CommonUtilities/log/LineTable.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 return table;
117 }
118 LineTable::Entry* LineTable::TryLookup_(const std::string& file, int line)
119 {
120 std::shared_lock lk{ mtx_ };
121 if (auto i = lines_.find(MakeKey_(file, line)); i != lines_.end()) {
122 return &i->second;
123 }
124 return nullptr;
125 }
126 LineTable::Entry& LineTable::Lookup_(const std::string& file, int line)
127 {
128 std::shared_lock lk{ mtx_ };

Callers 1

TryLookupMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected