Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d4f8c27 authored by Vadim Caen's avatar Vadim Caen
Browse files

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
parent 3d4cc887
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment