| 298 | } |
| 299 | |
| 300 | std::shared_ptr<app::AppContext> LoaderService::getCurrentAppContext() { |
| 301 | const auto lock = mutex.asScopedLock(); |
| 302 | lock.lock(); |
| 303 | if (appStack.empty()) { |
| 304 | return nullptr; |
| 305 | } else { |
| 306 | return appStack[appStack.size() - 1]; |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | bool LoaderService::isRunning(const std::string& id) const { |
| 311 | const auto lock = mutex.asScopedLock(); |
no test coverage detected