Needs to be called with offer_serialization_mutex_ locked.
| 4522 | |
| 4523 | // Needs to be called with offer_serialization_mutex_ locked. |
| 4524 | void 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 |
nothing calls this directly
no test coverage detected