diff options
author | Dave Sparks <davidsparks@android.com> | 2009-11-10 17:08:08 -0800 |
---|---|---|
committer | Dave Sparks <davidsparks@android.com> | 2009-11-10 17:08:08 -0800 |
commit | 05fd0df0f3ec71ec6ea874439feda960ef882d0b (patch) | |
tree | 80289875489b6479d749267d5b45c8d5092ed7f7 /docs/html/sdk/api_diff/3/changes | |
parent | ae0cf6dc9eb92282ef92b00ac68bfaca8aad2a1e (diff) |
Fix potential deadlock in stopPreview/stopRecord.
Some camera HALs spin up a preview thread and need to wait for
the thread to exit. This can create a potential deadlock. In
stopPreview, we take the main lock. If a preview callback occurs
while the lock is held, the preview thread will block. If the
camera HAL is waiting for the preview thread to exit, this will
cause a deadlock.
This patch breaks out the preview buffer heap into a separate
mutex. This mutex is never held when the main lock is held, thus
preventing the deadlock from occuring.
Diffstat (limited to 'docs/html/sdk/api_diff/3/changes')
0 files changed, 0 insertions, 0 deletions