OSDN Git Service

Camera2: Fix potential deadlock
authorEino-Ville Talvala <etalvala@google.com>
Wed, 17 Oct 2012 23:32:34 +0000 (16:32 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Thu, 18 Oct 2012 02:00:06 +0000 (19:00 -0700)
commitf1945f0435e431fab2e6b83337a1ffe71a8df28c
treee1bbd34d295748d963d352ee0736fc6e37540094
parentecfbc952d51c71832f739b7483dcc8cb5fe68038
Camera2: Fix potential deadlock

setPreviewWindow was holding a lock during long-lasting HAL calls
which may cause deadlock if the HAL calls back into the service during
the call. Stop holding the lock during these calls, since it's not
essential to do so.

Bug: 7320517
Change-Id: I4a35703d751e22ac32979b5a1288e291610576e7
services/camera/libcameraservice/Camera2Client.cpp