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

Method get_parent_or_self

implementation/routing/src/remote_subscription.cpp:294–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294std::shared_ptr<remote_subscription> remote_subscription::get_parent_or_self() {
295 // check if parent subscription exists, if so return it, otherwise return the subscription itself to be used for checking pending
296 // clients
297 if (std::shared_ptr<remote_subscription> p = parent_.lock()) {
298 return p;
299 }
300 return shared_from_this();
301}
302} // namespace vsomeip_v3

Callers 3

send_subscription_ackMethod · 0.80
is_pendingMethod · 0.80

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected