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

Commit 6c148f56 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Automerger Merge Worker
Browse files

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

parents c94e158e 28d990bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -337,6 +337,12 @@ public class ProcessCpuTracker {

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

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

        final long nowUptime = SystemClock.uptimeMillis();