replay: make speed_ atomic (#30429)

make speed_ atomic
old-commit-hash: 26a82e70d547a479c768d1971dca151f34aadcb6
This commit is contained in:
Dean Lee
2023-11-10 10:02:48 +08:00
committed by GitHub
parent 55b1515b75
commit 6f27ae486f
+1 -1
View File
@@ -144,7 +144,7 @@ protected:
std::vector<std::tuple<double, double, TimelineType>> timeline;
std::set<cereal::Event::Which> allow_list;
std::string car_fingerprint_;
float speed_ = 1.0;
std::atomic<float> speed_ = 1.0;
replayEventFilter event_filter = nullptr;
void *filter_opaque = nullptr;
int segment_cache_limit = MIN_SEGMENTS_CACHE;