From a6da064a93691779a7367e10487c2837a01cd8af Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sat, 2 Oct 2021 22:09:39 +0800 Subject: [PATCH] replay/segment: std::atomic member variables (#22409) --- selfdrive/ui/replay/route.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/replay/route.h b/selfdrive/ui/replay/route.h index 0d096f478f..126b676266 100644 --- a/selfdrive/ui/replay/route.h +++ b/selfdrive/ui/replay/route.h @@ -56,9 +56,9 @@ protected: void downloadFile(const QString &url); QString localPath(const QUrl &url); - bool loaded_ = false, valid_ = false; + std::atomic loaded_ = false, valid_ = false; std::atomic aborting_ = false; - int downloading_ = 0; + std::atomic downloading_ = 0; int seg_num_ = 0; SegmentFile files_; QString road_cam_path_;