| 822 | } |
| 823 | |
| 824 | bool endpoint_manager_impl::remove_instance(service_t _service, boardnet_endpoint* const _endpoint) { |
| 825 | { |
| 826 | std::scoped_lock its_lock(endpoint_mutex_); |
| 827 | auto found_service = service_instances_.find(_service); |
| 828 | if (found_service != service_instances_.end()) { |
| 829 | if (found_service->second.erase(_endpoint)) { |
| 830 | if (!found_service->second.size()) { |
| 831 | service_instances_.erase(found_service); |
| 832 | } |
| 833 | } |
| 834 | } |
| 835 | } |
| 836 | return !is_used_endpoint(_endpoint); |
| 837 | } |
| 838 | |
| 839 | bool endpoint_manager_impl::remove_instance_multicast(service_t _service, instance_t _instance) { |
| 840 | std::scoped_lock its_lock(endpoint_mutex_); |
no test coverage detected