| 3850 | } |
| 3851 | |
| 3852 | std::shared_ptr<serviceinfo> routing_manager_impl::find_service(service_t _service, instance_t _instance) const { |
| 3853 | std::shared_ptr<serviceinfo> its_info; |
| 3854 | std::scoped_lock its_lock(services_mutex_); |
| 3855 | auto found_service = services_.find(_service); |
| 3856 | if (found_service != services_.end()) { |
| 3857 | auto found_instance = found_service->second.find(_instance); |
| 3858 | if (found_instance != found_service->second.end()) { |
| 3859 | its_info = found_instance->second; |
| 3860 | } |
| 3861 | } |
| 3862 | return its_info; |
| 3863 | } |
| 3864 | |
| 3865 | services_t routing_manager_impl::get_services() const { |
| 3866 | std::scoped_lock its_lock(services_mutex_); |
no test coverage detected