| 17 | static Mutex hash_mutex; |
| 18 | |
| 19 | void addAppManifest(const AppManifest& manifest) { |
| 20 | LOGGER.info("Registering manifest {}", manifest.appId); |
| 21 | |
| 22 | hash_mutex.lock(); |
| 23 | |
| 24 | if (app_manifest_map.contains(manifest.appId)) { |
| 25 | LOGGER.warn("Overwriting existing manifest for {}", manifest.appId); |
| 26 | } |
| 27 | |
| 28 | app_manifest_map[manifest.appId] = std::make_shared<AppManifest>(manifest); |
| 29 | |
| 30 | hash_mutex.unlock(); |
| 31 | } |
| 32 | |
| 33 | bool removeAppManifest(const std::string& id) { |
| 34 | LOGGER.info("Removing manifest for {}", id); |
no test coverage detected