MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / close

Method close

app/src/DataModel/FrameConsumer.h:111–123  ·  view source on GitHub ↗

* @brief Flushes remaining data and closes resources; the try/catch is mandatory because this * runs through Qt's event loop, where an escaping exception would cross the dispatch boundary. */

Source from the content-addressed store, hash-verified

109 * runs through Qt's event loop, where an escaping exception would cross the dispatch boundary.
110 */
111 void close() override
112 {
113 try {
114 processData();
115 closeResources();
116 } catch (const std::exception& e) {
117 qWarning() << "[FrameConsumer] Exception during close:" << e.what();
118 } catch (...) {
119 qWarning() << "[FrameConsumer] Unknown exception during close";
120 }
121
122 Q_EMIT resourceOpenChanged();
123 }
124
125 /**
126 * @brief Drains every pending frame without closing resources; keeps the worker reusable and

Callers 15

openJsonFileMethod · 0.45
importProjectFromJsonMethod · 0.45
exportTableToCsvMethod · 0.45
importTableFromCsvMethod · 0.45
parseCSVMethod · 0.45
parseXMLMethod · 0.45
parseJSONMethod · 0.45
showPreviewMethod · 0.45
importMethod · 0.45
selectTemplateMethod · 0.45
onThemeChangedMethod · 0.45
importMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected