| 2395 | } |
| 2396 | |
| 2397 | void routing_manager_client::cleanup_routing_data() { |
| 2398 | { |
| 2399 | std::scoped_lock lock(consumer_mutex_); |
| 2400 | auto removed = available_services_.clear(); |
| 2401 | for (auto const& [service, instance, major, minor, client] : removed) { |
| 2402 | on_stop_offer_service(service, instance, major, minor, lock); |
| 2403 | } |
| 2404 | available_services_history_.clear(); |
| 2405 | address_table_.clear(); |
| 2406 | } |
| 2407 | } |
| 2408 | |
| 2409 | void routing_manager_client::cleanup_subscriber(std::scoped_lock<std::mutex> const& _provider_lock) { |
| 2410 | // Tracks unique (service, instance, eventgroup, client) tuples for which |