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

Method SetStateInstalled

framework/src/bundle/BundlePrivate.cpp:226–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 }
225
226 void
227 BundlePrivate::SetStateInstalled(bool sendEvent)
228 {
229 // Make sure that bundleContext is invalid
230 std::shared_ptr<BundleContextPrivate> ctx;
231 if ((ctx = bundleContext.Exchange(ctx)))
232 {
233 ctx->Invalidate();
234 }
235
236 state = Bundle::STATE_INSTALLED;
237 if (sendEvent)
238 {
239 operation = OP_UNRESOLVING;
240 coreCtx->listeners.BundleChanged({ BundleEvent::BUNDLE_RESOLVED, MakeBundle(this->shared_from_this()) });
241 }
242 operation = OP_IDLE;
243 }
244
245 void
246 BundlePrivate::FinalizeActivation()

Callers 1

StopAllBundlesMethod · 0.80

Calls 5

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

Tested by

no test coverage detected