commit | 7c671925f055b8fdbb09d7d40024ccdce0c9f34c | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Wed Dec 07 11:44:06 2022 -0800 |
committer | Yu Shan <shanyu@google.com> | Thu Dec 08 14:42:21 2022 -0800 |
tree | 424ec5eb852f37743568ce96fc176fd00555cb73 | |
parent | efa1e9a555ad6eff40e57d05d69965325e4ede61 [diff] |
Remove lock for fakeVehicleHardware callbacks. The callbacks are called very frequently, guarding them with the main mLock will cause the mLock to become very hot and possibly blocking other operations from owning the lock. Since the callback is only set once by DefaultVehicleHal during initialization, it is really not necessary to guard them with lock. Test: manual run on gcar_emu Bug: 255574557 Change-Id: Icc1f90b89578a27729ef8beae3a475966f72d318