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

Commit 75e13c91 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Refactor the VDM locks

Basically never call outside the class while holding a lock

VirtualDeviceManagerService:
 - utilize the virtual device snapshot in more places
VirtualDeviceImpl:
 - use a separate lock for mIntentInterceptors - holding mVirtualDeviceLock is actually completely unnecessary there
 - use a separate lock for PowerManager and related fields to avoid a deadlock (PowerGroup's constructor actually calls VDM)
 - This allows to call PowerManager without mVirtualDeviceLock


Change-Id: I8ba16564053779e5cbe46bb89658fe55ab28777a
Fix: 394534258
Test: presubmit
Flag: EXEMPT bugfix
parent f66ccbb0
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