commit | 7f986a046be8691ce49f598146bf975ca96719ba | [log] [tgz] |
---|---|---|
author | Keith Mok <keithmok@google.com> | Thu May 05 17:07:50 2022 +0000 |
committer | Keith Mok <keithmok@google.com> | Fri May 06 21:10:28 2022 +0000 |
tree | a33cee1070eb9ada46a83ecff3093b4980a6dfb2 | |
parent | 5650e570bed11512b206be7b97b6aa8e82f4b7d7 [diff] |
Fix race condition in EVS virtual camera mFramesHeld is being used in a thread created by startVideoStream in VirtualCamera.cpp. And mFramesHeld is also used by other threads without mutex lock. Add a mutex lock for that. Bug: 231495593 Test: evs_virtual_camera_fuzzer Change-Id: If6fd53ba47b164ba18f9c7c3a7e2b4f455917aa5
Source code for Android Automotive OS.
car_product/ - AAOS product car-builtin-lib/ - A helper library for CarService to access hidden framework APIs car-lib/ - Car API car-lib-module/ - Car API module cpp/ - Native services experimental/ - Experimental Car API and services packages/ - Apps and services for cars service/ - Car service module service-builint - Platform builtin component that runs CarService module tests/ - Tests and sample apps tools/ - Helper scripts
Native (C++) code format is required to be compatible with .clang-format file. The formatter is already integrated to repo
tool. To run manually, use:
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.