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

Function optApp

Tactility/Source/app/systeminfo/SystemInfo.cpp:281–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279class SystemInfoApp;
280
281static std::shared_ptr<SystemInfoApp> optApp() {
282 auto appContext = getCurrentAppContext();
283 if (appContext != nullptr && appContext->getManifest().appId == manifest.appId) {
284 return std::static_pointer_cast<SystemInfoApp>(appContext->getApp());
285 }
286 return nullptr;
287}
288
289class SystemInfoApp final : public App {
290 Timer memoryTimer = Timer(Timer::Type::Periodic, kernel::millisToTicks(10000), [] {

Callers 1

SystemInfoAppClass · 0.70

Calls 2

getCurrentAppContextFunction · 0.85
getAppMethod · 0.80

Tested by

no test coverage detected