replay: make `speed_` atomic (#30429)

make speed_ atomic
pull/30283/head^2
Dean Lee 1 year ago committed by GitHub
parent cf2d4fd7ea
commit 26a82e70d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/replay/replay.h

@ -144,7 +144,7 @@ protected:
std::vector<std::tuple<double, double, TimelineType>> timeline; std::vector<std::tuple<double, double, TimelineType>> timeline;
std::set<cereal::Event::Which> allow_list; std::set<cereal::Event::Which> allow_list;
std::string car_fingerprint_; std::string car_fingerprint_;
float speed_ = 1.0; std::atomic<float> speed_ = 1.0;
replayEventFilter event_filter = nullptr; replayEventFilter event_filter = nullptr;
void *filter_opaque = nullptr; void *filter_opaque = nullptr;
int segment_cache_limit = MIN_SEGMENTS_CACHE; int segment_cache_limit = MIN_SEGMENTS_CACHE;

Loading…
Cancel
Save