| 126 | } |
| 127 | |
| 128 | std::shared_ptr<ExtensionType> GetType(const std::string& type_name) override { |
| 129 | std::lock_guard<std::mutex> lock(lock_); |
| 130 | auto it = name_to_type_.find(type_name); |
| 131 | if (it == name_to_type_.end()) { |
| 132 | return nullptr; |
| 133 | } else { |
| 134 | return it->second; |
| 135 | } |
| 136 | return nullptr; |
| 137 | } |
| 138 | |
| 139 | private: |
| 140 | std::mutex lock_; |
no test coverage detected