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

Commit 28d990bd authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Automerger Merge Worker
Browse files

Merge "Improve synchronization of ProcessCpuTracker" into main am: 564f0514

parents 6a918d0f 564f0514
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -337,6 +337,12 @@ public class ProcessCpuTracker {


    @UnsupportedAppUsage
    @UnsupportedAppUsage
    public void update() {
    public void update() {
        synchronized (this) {
            updateLocked();
        }
    }

    private void updateLocked() {
        if (DEBUG) Slog.v(TAG, "Update: " + this);
        if (DEBUG) Slog.v(TAG, "Update: " + this);


        final long nowUptime = SystemClock.uptimeMillis();
        final long nowUptime = SystemClock.uptimeMillis();