* @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. */
| 1158 | * are DirectConnection to avoid per-frame postEvent overhead on the main-thread hotpath hop. |
| 1159 | */ |
| 1160 | void 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]. |