MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / ~StreamingSourceManager

Method ~StreamingSourceManager

pj_app/src/StreamingSourceManager.cpp:97–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97StreamingSourceManager::~StreamingSourceManager() {
98 // Cooperative stop + join for every live session. We can't go through
99 // onWorkerFinished here because the UI event loop won't run again.
100 for (auto& [dataset_id, sess] : sessions_) {
101 if (sess->runtime_host != nullptr) {
102 sess->runtime_host->requestStop("manager shutdown");
103 }
104 }
105 for (auto& [dataset_id, sess] : sessions_) {
106 if (sess->worker != nullptr) {
107 sess->worker->wait();
108 }
109 }
110}
111
112bool StreamingSourceManager::hasActiveSession() const {
113 return !sessions_.empty();

Callers

nothing calls this directly

Calls 1

requestStopMethod · 0.80

Tested by

no test coverage detected