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

Method get_remote_subscription

implementation/routing/src/eventgroupinfo.cpp:355–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355std::shared_ptr<remote_subscription> eventgroupinfo::get_remote_subscription(const remote_subscription_id_t _id) {
356 std::scoped_lock its_lock(subscriptions_mutex_);
357
358 auto find_subscription = subscriptions_.find(_id);
359 if (find_subscription != subscriptions_.end())
360 return find_subscription->second;
361
362 return nullptr;
363}
364
365void eventgroupinfo::remove_remote_subscription(const remote_subscription_id_t _id) {
366 std::scoped_lock its_lock(subscriptions_mutex_);

Callers 4

on_subscribe_ackMethod · 0.80
on_subscribe_nackMethod · 0.80
expire_subscriptionsMethod · 0.80
on_unsubscribe_ackMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected