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

Method Init

framework/src/util/FrameworkPrivate.cpp:69–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void
70 FrameworkPrivate::Init()
71 {
72 auto l = Lock();
73 US_UNUSED(l);
74
75 switch (static_cast<Bundle::State>(state.load()))
76 {
77 case Bundle::STATE_INSTALLED:
78 case Bundle::STATE_RESOLVED:
79 break;
80 case Bundle::STATE_STARTING:
81 case Bundle::STATE_ACTIVE:
82 return;
83 default:
84 std::stringstream ss;
85 ss << state;
86 throw std::logic_error("INTERNAL ERROR, Illegal state, " + ss.str());
87 }
88 this->DoInit();
89 }
90
91 void
92 FrameworkPrivate::InitSystemBundle()

Callers 1

DoInitMethod · 0.45

Calls 2

DoInitMethod · 0.95
LockFunction · 0.85

Tested by

no test coverage detected