MCPcopy Create free account
hub / github.com/COVESA/vsomeip / remove_instance

Method remove_instance

implementation/endpoints/src/endpoint_manager_impl.cpp:824–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824bool 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
839bool endpoint_manager_impl::remove_instance_multicast(service_t _service, instance_t _instance) {
840 std::scoped_lock its_lock(endpoint_mutex_);

Callers 2

Calls 2

endMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected