mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Fix data race problem caused by a simulated_clock
PiperOrigin-RevId: 525540869
This commit is contained in:
@@ -511,7 +511,7 @@ class MediumEnvironment {
|
||||
|
||||
bool use_valid_peer_connection_ = true;
|
||||
absl::Duration peer_connection_latency_ = absl::ZeroDuration();
|
||||
std::unique_ptr<FakeClock> simulated_clock_;
|
||||
std::unique_ptr<FakeClock> simulated_clock_ ABSL_GUARDED_BY(mutex_);
|
||||
};
|
||||
|
||||
} // namespace nearby
|
||||
|
||||
Reference in New Issue
Block a user