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

Skip to content
Commit 37eca249 authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

Functions called by RequestThread::threadLoop must not hold mInterfaceMutex.



Functions called by RequestThread::threadLoop must not hold
mInterfaceMutex since the following deadlock scenario may occur:

T1: disconnect() -> holds mInterfaceMutex and waits for RequestThread to
    exit
  T2: RequestThread::threadLoop()->reconfigureCamera (or any other function) that waits on
      mInterfaceMutex

leading to a deadlock

Bug: 143513518

Test: GCA
Test: CTS

Change-Id: I4bd856e5263934a54cd7087a01d35cfe10936196
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent 3066e206
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment