ui/cameraview: fix deadlock on exit due to Qt::BlockingQueuedConnection (#32620)

fix deadlock
pull/32622/head
Dean Lee 11 months ago committed by GitHub
parent c7b3ece37e
commit 25e15846f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/ui/qt/widgets/cameraview.cc

@ -11,6 +11,7 @@
#include <string>
#include <utility>
#include <QApplication>
#include <QOpenGLBuffer>
#include <QOffscreenSurface>
@ -104,6 +105,7 @@ CameraWidget::CameraWidget(std::string stream_name, VisionStreamType type, bool
QObject::connect(this, &CameraWidget::vipcThreadConnected, this, &CameraWidget::vipcConnected, Qt::BlockingQueuedConnection);
QObject::connect(this, &CameraWidget::vipcThreadFrameReceived, this, &CameraWidget::vipcFrameReceived, Qt::QueuedConnection);
QObject::connect(this, &CameraWidget::vipcAvailableStreamsUpdated, this, &CameraWidget::availableStreamsUpdated, Qt::QueuedConnection);
QObject::connect(QApplication::instance(), &QCoreApplication::aboutToQuit, this, &CameraWidget::stopVipcThread);
}
CameraWidget::~CameraWidget() {

Loading…
Cancel
Save