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

Method find_service

implementation/routing/src/routing_manager_impl.cpp:3852–3863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3850}
3851
3852std::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
3865services_t routing_manager_impl::get_services() const {
3866 std::scoped_lock its_lock(services_mutex_);

Callers 5

on_connectMethod · 0.45
on_disconnectMethod · 0.45
find_remote_clientMethod · 0.45
create_remote_clientMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected