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

Method wireDevice

app/src/IO/ConnectionManager.cpp:1160–1176  ·  view source on GitHub ↗

* @brief Connects a DeviceManager's output signals to ConnectionManager's routing slots; the hops * are DirectConnection to avoid per-frame postEvent overhead on the main-thread hotpath hop. */

Source from the content-addressed store, hash-verified

1158 * are DirectConnection to avoid per-frame postEvent overhead on the main-thread hotpath hop.
1159 */
1160void IO::ConnectionManager::wireDevice(DeviceManager* dm)
1161{
1162 Q_ASSERT(dm);
1163 Q_ASSERT(dm->driver());
1164
1165 connect(dm,
1166 &IO::DeviceManager::frameReady,
1167 this,
1168 &IO::ConnectionManager::onFrameReady,
1169 Qt::DirectConnection);
1170
1171 connect(dm,
1172 &IO::DeviceManager::rawDataReceived,
1173 this,
1174 &IO::ConnectionManager::onRawDataReceived,
1175 Qt::DirectConnection);
1176}
1177
1178/**
1179 * @brief Captures current UI-config driver settings back to source[0].

Callers

nothing calls this directly

Calls 1

driverMethod · 0.45

Tested by

no test coverage detected