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

Method Stop2

framework/src/bundle/BundlePrivate.cpp:183–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 }
182
183 void
184 BundlePrivate::Stop2()
185 {
186 // Call hooks after we've called BundleActivator::Stop(), but before we've
187 // cleared all resources
188 std::shared_ptr<BundleContextPrivate> ctx = bundleContext.Load();
189 if (ctx)
190 {
191 coreCtx->listeners.HooksBundleStopped(ctx);
192 RemoveBundleResources();
193 ctx->Invalidate();
194 bundleContext.Store(std::shared_ptr<BundleContextPrivate>());
195 }
196 }
197
198 Bundle::State
199 BundlePrivate::GetUpdatedState()

Callers

nothing calls this directly

Calls 4

HooksBundleStoppedMethod · 0.80
LoadMethod · 0.45
InvalidateMethod · 0.45
StoreMethod · 0.45

Tested by

no test coverage detected