| 292 | } |
| 293 | |
| 294 | std::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 |
no test coverage detected