commit | 2543bb488b2e6726b32b4a9bae0c988cc0c21ee0 | [log] [tgz] |
---|---|---|
author | Emilian Peev <epeev@google.com> | Wed Aug 04 15:38:25 2021 -0700 |
committer | Emilian Peev <epeev@google.com> | Wed Aug 04 17:12:36 2021 -0700 |
tree | 5f3a77e7755bd371330cfc1e517e30013eedd89d | |
parent | a72b3e92e9054e9e410f75a78314b9ff5f23657e [diff] |
Camera: Release extension resources after closing handler thread To avoid possible concurrency issues, always quit the handler thread before releasing any extension resources. In case camera is still running, camera callbacks can still be handled during release which can result in concurrency exceptions. Bug: 195595369 Test: atest -c cts/tests/camera/src/android/hardware/camera2/cts/CameraExtensionSessionTest.java Change-Id: I473a4cb04e5ea27b5c8f8221a2390219a7915e73