From 1fd8466af0a9b8590be48c6eeada9b6a4eee3c19 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Mon, 13 Sep 2021 15:57:03 +0800 Subject: [PATCH] replay: unlock mutex before sleep (#22213) old-commit-hash: 365e8bfd93046dc16caf23867ea094d2fe0f8e6a --- selfdrive/ui/replay/replay.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/ui/replay/replay.cc b/selfdrive/ui/replay/replay.cc index 8e9ee232f9..9f0a620fcd 100644 --- a/selfdrive/ui/replay/replay.cc +++ b/selfdrive/ui/replay/replay.cc @@ -201,6 +201,7 @@ void Replay::stream() { std::unique_lock lk(lock); if (!events || events->size() == 0) { + lk.unlock(); qDebug() << "waiting for events"; QThread::msleep(100); continue; @@ -285,6 +286,7 @@ void Replay::stream() { } } } + lk.unlock(); updating_events = false; usleep(0); }