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

Method findAppInStack

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

Source from the content-addressed store, hash-verified

169}
170
171int LoaderService::findAppInStack(const std::string& id) const {
172 auto lock = mutex.asScopedLock();
173 lock.lock();
174 for (size_t i = 0; i < appStack.size(); i++) {
175 if (appStack[i]->getManifest().appId == id) {
176 return i;
177 }
178 }
179 return -1;
180}
181
182void LoaderService::onStopAllAppMessage(const std::string& id) {
183 auto lock = mutex.asScopedLock();

Callers

nothing calls this directly

Calls 2

asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected