replay: make speed_ atomic (#30429)

make speed_ atomic
This commit is contained in:
Dean Lee
2023-11-10 10:02:48 +08:00
committed by GitHub
parent cf2d4fd7ea
commit 26a82e70d5
+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;