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

Method offer_remote_service

implementation/routing/src/routing_manager_impl.cpp:4524–4541  ·  view source on GitHub ↗

Needs to be called with offer_serialization_mutex_ locked.

Source from the content-addressed store, hash-verified

4522
4523// Needs to be called with offer_serialization_mutex_ locked.
4524void routing_manager_impl::offer_remote_service(service_t _service, instance_t _instance, bool _external_routing_ready) {
4525 {
4526 if (_external_routing_ready) {
4527 init_service_info(_service, _instance, true);
4528 } else {
4529 std::scoped_lock its_lock_inner(pending_sd_offers_mutex_);
4530 pending_sd_offers_.emplace(_service, _instance);
4531 VSOMEIP_INFO << "Added service 0x" << hex4(_service) << " to pending_sd_offers[" << pending_sd_offers_.size() << "]";
4532 }
4533 }
4534
4535 if (discovery_) {
4536 std::shared_ptr<serviceinfo> its_info = find_service(_service, _instance);
4537 if (its_info) {
4538 discovery_->offer_service(its_info);
4539 }
4540 }
4541}
4542} // namespace vsomeip_v3

Callers

nothing calls this directly

Calls 3

hex4Function · 0.85
sizeMethod · 0.45
offer_serviceMethod · 0.45

Tested by

no test coverage detected