summaryrefslogtreecommitdiffstats
path: root/src_pd_gcam
diff options
context:
space:
mode:
authorEmilian Peev <epeevs@codeaurora.org>2015-06-02 14:50:30 +0300
committerArne Coucheron <arco68@gmail.com>2018-01-27 00:41:42 +0100
commit2351f5b56a3571b0bb9f75dc4b355a86ceef5709 (patch)
tree8094ad3c063e9317c96ccb084a013256c41721ae /src_pd_gcam
parentcc4130a5923c70ba11c00146ec18c8766cb4e18e (diff)
downloadandroid_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 'src_pd_gcam')
0 files changed, 0 insertions, 0 deletions