replicant-frameworks_native/camera/libcameraservice
Dave Sparks ff0f38e6fe 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.
2009-11-10 17:08:08 -08:00
..
Android.mk In the simulator, make sure that the preview thread is a Java thread, 2009-08-13 09:24:47 -07:00
CameraHardwareStub.cpp Add zoom functions and sendCommand. 2009-10-06 13:25:10 -07:00
CameraHardwareStub.h Add zoom functions and sendCommand. 2009-10-06 13:25:10 -07:00
CameraService.cpp Fix potential deadlock in stopPreview/stopRecord. 2009-11-10 17:08:08 -08:00
CameraService.h Fix potential deadlock in stopPreview/stopRecord. 2009-11-10 17:08:08 -08:00
CannedJpeg.h
FakeCamera.cpp Automated import from //branches/donutburger/...@141782,141782 2009-03-24 20:53:55 -07:00
FakeCamera.h Automated import from //branches/master/...@141993,141993 2009-03-24 21:20:43 -07:00