62 std::unique_lock rebuild_lock{rebuild_mutex_, std::try_to_lock};
63 if (!rebuild_lock.owns_lock()) {
71 std::unique_ptr<AssetCatalogService> new_catalog_service = std::make_unique<AssetCatalogService>(
78 const bool is_online_lib = nested.
remote_url().has_value();
79 if (is_online_lib && skip_remote_libraries) {
83 if (reload_nested_catalogs) {
87 new_catalog_service->add_from_existing(
91 if (existing.path == to_be_ignored.path) {
93 "multiple definitions of catalog %s (path: %s), ignoring duplicate",
94 existing.catalog_id.str().c_str(),
95 existing.path.c_str());
101 "multiple definitions of catalog %s with differing paths (%s vs. %s), "
102 "ignoring second one",
103 existing.catalog_id.str().c_str(),
104 existing.path.c_str(),
105 to_be_ignored.path.c_str());
111 std::lock_guard
lock{catalog_service_mutex_};
112 catalog_service_ = std::move(new_catalog_service);
113 catalogs_dirty_ =
false;