replay/segment: std::atomic member variables (#22409)

old-commit-hash: a6da064a93691779a7367e10487c2837a01cd8af
This commit is contained in:
Dean Lee
2021-10-02 22:09:39 +08:00
committed by GitHub
parent 408273df05
commit 0a1fa4fa7b
+2 -2
View File
@@ -56,9 +56,9 @@ protected:
void downloadFile(const QString &url);
QString localPath(const QUrl &url);
bool loaded_ = false, valid_ = false;
std::atomic<bool> loaded_ = false, valid_ = false;
std::atomic<bool> aborting_ = false;
int downloading_ = 0;
std::atomic<int> downloading_ = 0;
int seg_num_ = 0;
SegmentFile files_;
QString road_cam_path_;