| 3141 | } |
| 3142 | |
| 3143 | void routing_manager_client::clear_service_info(service_t _service, instance_t _instance, |
| 3144 | [[maybe_unused]] std::scoped_lock<std::mutex> const& _lock) { |
| 3145 | if (auto const it_service = provided_services_.find(_service); it_service != provided_services_.end()) { |
| 3146 | if (it_service->second.size() <= 1) { |
| 3147 | // Why don't we need to check the instance? |
| 3148 | provided_services_.erase(_service); |
| 3149 | } else { |
| 3150 | it_service->second.erase(_instance); |
| 3151 | } |
| 3152 | } |
| 3153 | } |
| 3154 | |
| 3155 | std::shared_ptr<serviceinfo> routing_manager_client::find_service(service_t _service, instance_t _instance) const { |
| 3156 | std::scoped_lock its_lock(provider_mutex_); |