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

Method pushActivity

src/activities/ActivityManager.cpp:230–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228void ActivityManager::goToCrashReport() { replaceActivity(std::make_unique<CrashActivity>(renderer, mappedInput)); }
229
230void ActivityManager::pushActivity(std::unique_ptr<Activity>&& activity) {
231 if (pendingActivity) {
232 // Should never happen in practice
233 LOG_ERR("ACT", "pendingActivity while pushActivity is not expected");
234 pendingActivity.reset();
235 }
236 pendingActivity = std::move(activity);
237 pendingAction = PendingAction::Push;
238}
239
240void ActivityManager::popActivity() {
241 if (pendingActivity) {

Callers 1

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected