MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / StartFailed

Method StartFailed

framework/src/bundle/BundlePrivate.cpp:662–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660 }
661
662 void
663 BundlePrivate::StartFailed()
664 {
665 state = Bundle::STATE_STOPPING;
666 coreCtx->listeners.BundleChanged(
667 BundleEvent(BundleEvent::BUNDLE_STOPPING, MakeBundle(this->shared_from_this())));
668 RemoveBundleResources();
669 auto oldBundleContext = bundleContext.Exchange(std::shared_ptr<BundleContextPrivate>());
670 if (oldBundleContext)
671 {
672 oldBundleContext->Invalidate();
673 }
674 state = Bundle::STATE_RESOLVED;
675 coreCtx->listeners.BundleChanged(
676 BundleEvent(BundleEvent::BUNDLE_STOPPED, MakeBundle(this->shared_from_this())));
677 }
678
679 BundlePrivate::BundlePrivate(CoreBundleContext* coreCtx)
680 : coreCtx(coreCtx)

Callers

nothing calls this directly

Calls 6

MakeBundleFunction · 0.85
shared_from_thisMethod · 0.80
BundleEventClass · 0.70
BundleChangedMethod · 0.45
ExchangeMethod · 0.45
InvalidateMethod · 0.45

Tested by

no test coverage detected