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

Commit 564f0514 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Gerrit Code Review
Browse files

Merge "Improve synchronization of ProcessCpuTracker" into main

parents 75a671c7 e6bfa6b9
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();