commit | 77dd4aaad3d71a31a8b546758d8ee09e9b50d6e0 | [log] [tgz] |
---|---|---|
author | Yahan Zhou <yahan@google.com> | Thu Jun 22 17:04:41 2017 -0700 |
committer | Yin-Chia Yeh <yinchiayeh@google.com> | Fri Jun 23 00:28:11 2017 +0000 |
tree | 09750190d5b24a3bf73eca775ba4bb18b5346e2e | |
parent | 11ec3936891cb483f7db19945e9b1af8d7f3f1ed [diff] |
Camera: fix recursive lock in CameraDevice 1.0 Several functions call close() while they are holding a lock, which results in recursive locking. This CL implements close_locked() to avoid such behavior. Bug: 62919192 Test: run vts -m VtsHalCameraProviderV2_4Target, and camera should still work after it Change-Id: Ib38e1de19ed3c927bfb645c0c777c04f157f2b88