commit | f8417611579942b895d1679a1471ae302cd5eaf2 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Wed Nov 15 15:25:32 2023 -0800 |
committer | Yu Shan <shanyu@google.com> | Wed Nov 22 11:12:56 2023 -0800 |
tree | 0760f753100684581d0e27289d97a3bb1e0b96d5 | |
parent | 5ba717d176d35846439b367e7cf9fb1394f5e57d [diff] |
Make refreshTimestamp atomic. Make refreshTimestamp atomic in VehiclePropertyStore so that we are sure the property value will not be updated after we read the value out, but before we put the value with the new timestamp back. Otherwise there is a slight chance that a property update will be overwritten by the timestamp refresh operation. Test: atest FakeVehicleHardwareTest Bug: 308552957 Change-Id: I789257b4c75d8a4d19edeec31d01dc23776233ec