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

Method find_instance

implementation/endpoints/src/endpoint_manager_impl.cpp:798–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796}
797
798instance_t endpoint_manager_impl::find_instance(service_t _service, boardnet_endpoint* const _endpoint) const {
799 instance_t its_instance(0xFFFF);
800 std::scoped_lock its_lock(endpoint_mutex_);
801 auto found_service = service_instances_.find(_service);
802 if (found_service != service_instances_.end()) {
803 auto found_endpoint = found_service->second.find(_endpoint);
804 if (found_endpoint != found_service->second.end()) {
805 its_instance = found_endpoint->second;
806 }
807 }
808 return its_instance;
809}
810
811instance_t endpoint_manager_impl::find_instance_multicast(service_t _service, const boost::asio::ip::address& _sender) const {
812 instance_t its_instance(0xFFFF);

Callers 2

get_instanceMethod · 0.80
on_messageMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected