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

Method clear_service_info

implementation/routing/src/routing_manager_client.cpp:3143–3153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3141}
3142
3143void routing_manager_client::clear_service_info(service_t _service, instance_t _instance,
3144 [[maybe_unused]] std::scoped_lock<std::mutex> const& _lock) {
3145 if (auto const it_service = provided_services_.find(_service); it_service != provided_services_.end()) {
3146 if (it_service->second.size() <= 1) {
3147 // Why don't we need to check the instance?
3148 provided_services_.erase(_service);
3149 } else {
3150 it_service->second.erase(_instance);
3151 }
3152 }
3153}
3154
3155std::shared_ptr<serviceinfo> routing_manager_client::find_service(service_t _service, instance_t _instance) const {
3156 std::scoped_lock its_lock(provider_mutex_);

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected