| 246 | }; |
| 247 | |
| 248 | FileDataPtr _findIfExists(const fl::string &path) { |
| 249 | auto ® = FileRegistry::instance(); |
| 250 | fl::unique_lock<fl::mutex> lock(reg.mutex); |
| 251 | auto it = reg.files.find(path); |
| 252 | if (it != reg.files.end()) { |
| 253 | return it->second; |
| 254 | } |
| 255 | return FileDataPtr(); |
| 256 | } |
| 257 | |
| 258 | FileDataPtr _findOrCreate(const fl::string &path, size_t len) { |
| 259 | auto ® = FileRegistry::instance(); |
no test coverage detected