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

Skip to content
Commit 8d4858d2 authored by Jernej Virag's avatar Jernej Virag
Browse files

Make WakeLock handling thread safe

We have an implementation of a wakelock which reference counts requestors - however, the implementation is not thread safe.

This commit:

1. Makes the implementation thread safe
2. Retroactively flag guards the use of WakeLocks on background thread from previous commit.
3. Slightly improves logging so we don't churn strings if logging is disabled.

Bug:326544949
Bug:316128516

Test: newly added and existing unit tests
Flag: ACONFIG com.android.systemui.flags.DELAYED_WAKELOCK_RELEASE_ON_BACKGROUND_THREAD DISABLED
Change-Id: I9ce86fdd69fdae9f88b5e06f5b85836fb4f9aa5e
parent eee2b438
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