Revert "Camera2: Fix a potential race condition in the readout thread"

The last fix incorrectly added a mutex lock which did not guard the appropriate
variables.

In fact it actually *introduced* a new race condition in a HAL test.

This reverts commit 6edd7ab4a4.
This commit is contained in:
Igor Murashkin
2012-12-14 14:16:35 -08:00
parent 6edd7ab4a4
commit c4464b7fee

View File

@@ -1135,7 +1135,6 @@ void EmulatedFakeCamera2::ReadoutThread::setNextOperation(
camera_metadata_t *request,
Buffers *buffers) {
Mutex::Autolock lock(mInputMutex);
Mutex::Autolock iLock(mInternalsMutex);
if ( !readyForNextCapture() ) {
ALOGE("In flight queue full, dropping captures");
mParent->signalError();