diff options
author | Emilian Peev <epeevs@codeaurora.org> | 2015-06-02 14:50:30 +0300 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2018-01-27 00:41:42 +0100 |
commit | 2351f5b56a3571b0bb9f75dc4b355a86ceef5709 (patch) | |
tree | 8094ad3c063e9317c96ccb084a013256c41721ae /res/drawable-port-hdpi/btn_video_shutter_recording_holo_xlarge.png | |
parent | cc4130a5923c70ba11c00146ec18c8766cb4e18e (diff) | |
download | android_packages_apps_Snap-2351f5b56a3571b0bb9f75dc4b355a86ceef5709.tar.gz android_packages_apps_Snap-2351f5b56a3571b0bb9f75dc4b355a86ceef5709.tar.bz2 android_packages_apps_Snap-2351f5b56a3571b0bb9f75dc4b355a86ceef5709.zip |
Snapdragon Camera: Avoid possible race condition
Camera open and preview start are currently
executed in a separate thread different from the
main handler thread. If the main thread tries to
switch the camera immediately after the open camera
thread starts a race condition is possible. This
race condition can lead to a failing assert in
CameraHolder which can receive two camera open
requests one after another. To resolve this
the main handler thread needs to check whether
an open camera thread got initialized and started
previously. If the check is positive, it needs
to wait until the separate thread finishes before
proceeding with the camera switch sequence.
Change-Id: I409e3158bc976120de31540351ea8e55fddbca46
Diffstat (limited to 'res/drawable-port-hdpi/btn_video_shutter_recording_holo_xlarge.png')
0 files changed, 0 insertions, 0 deletions