| 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() |