diff options
| author | 2022-04-12 10:19:52 +0000 | |
|---|---|---|
| committer | 2022-04-13 04:02:27 +0000 | |
| commit | 52d63e7e4c3e0db42f72f8f55453a47d62b8aa22 (patch) | |
| tree | aa43afc090818b4e5d8433429a7eeb9f000b08ad /libs/androidfw/AttributeResolution.cpp | |
| parent | 2e495889be6991ca539c94840d5f35a4e9dd99f0 (diff) | |
DO NOT MERGE: Don't do heavy operation while in the synchronized block
We read the wallpaper within the synchronized block, this is a long time
operation, might block the other thread who is going to obtain the lock.
So we have to move the operation beyond the synchronized block.
Bug: 228435216
Test: atest WallpaperManagerTest#testPeekWallpaperNotBlockingOtherThread
Change-Id: Ic2a947b473710ffe68db436586769858950588a4
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions