MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getCurrentAppContext

Method getCurrentAppContext

Tactility/Source/service/loader/Loader.cpp:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300std::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
310bool LoaderService::isRunning(const std::string& id) const {
311 const auto lock = mutex.asScopedLock();

Callers 1

getCurrentAppContextFunction · 0.80

Calls 2

asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected