MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / exitActivity

Method exitActivity

src/activities/ActivityManager.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void ActivityManager::exitActivity(const RenderLock& lock) {
151 // Note: lock must be held by the caller
152 if (currentActivity) {
153 currentActivity->onExit();
154 currentActivity.reset();
155 }
156}
157
158void ActivityManager::replaceActivity(std::unique_ptr<Activity>&& newActivity) {
159 // Note: no lock here, this is usually called by loop() and we may run into deadlock

Callers

nothing calls this directly

Calls 2

onExitMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected