Fix deadlock in virtual camera
onFrameAvailable is called with egl::ScopedGlobalMutexLock::ScopedGlobalMutexLock() called first and GlConsumer::mMutex locked within. On another thread EglSurfaceTexture::updateTexture() is called and then GlConsumer::mMutex is locked and then egl::ScopedGlobalMutexLock::ScopedGlobalMutexLock() This create a reverse mutex locking order leading to a deadlock. Bug: 410432483 Test: CtsVirtualDevicesCameraCtsTestCases Flag: EXEMPT Bug fix Change-Id: I3d8a3c5d3a30e86d547429ee8516725aebeba881
Loading
Please register or sign in to comment