| 93 | } |
| 94 | |
| 95 | Bundle |
| 96 | ServiceReferenceBase::GetBundle() const |
| 97 | { |
| 98 | auto refP = d.Load(); |
| 99 | auto reg = refP->registration.lock(); |
| 100 | if (!reg) |
| 101 | { |
| 102 | return Bundle(); |
| 103 | } |
| 104 | |
| 105 | auto l = refP->LockServiceRegistration(); |
| 106 | US_UNUSED(l); |
| 107 | auto bundle = refP->coreInfo->bundle_.lock(); |
| 108 | if (bundle == nullptr) |
| 109 | { |
| 110 | return Bundle(); |
| 111 | } |
| 112 | return MakeBundle(bundle->shared_from_this()); |
| 113 | } |
| 114 | |
| 115 | std::vector<Bundle> |
| 116 | ServiceReferenceBase::GetUsingBundles() const |
no test coverage detected