commit | 22ebbf78220c39edf517a2c758079d6fc481ea7e | [log] [tgz] |
---|---|---|
author | Keith Mok <keithmok@google.com> | Fri May 06 07:39:04 2022 +0000 |
committer | Keith Mok <keithmok@google.com> | Mon May 09 03:38:11 2022 +0000 |
tree | f41c25d5c3e57542a3fd56f7254aefb0be9e473c | |
parent | 85aebe3ee2a34bd4940d603fefcd55c74de313f4 [diff] |
vehicle-aidl: Fix various race condition mThread should not be created in initization list, since class member variables are not ready yet, and the thread will access those variables. Even if the shared variable is atomic, it must be modified under the mutex in order to correctly publish the modification to the waiting thread. Bug: 231668271 Test: android.hardware.automotive.vehicle@V1-default-service_fuzzer Change-Id: Ibbf36ddf9edcaa8d016349631784f54f6fd6c877