| 127 | } |
| 128 | |
| 129 | tree::NodeID IdMap::get(SolverID sid) const |
| 130 | { |
| 131 | QReadLocker locker(&m_lock); |
| 132 | |
| 133 | const auto it = uid2id_.find(sid); |
| 134 | |
| 135 | if (it != uid2id_.end()) |
| 136 | { |
| 137 | return it->second; |
| 138 | } |
| 139 | else |
| 140 | { |
| 141 | return NodeID::NoNode; |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | } // namespace cpprofiler |