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

Commit 86905f44 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Add units to time periods"

parents ca42b286 22ecc912
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ static const char kDeadlockedString[] = "AudioPolicyService may be deadlocked\n"
static const char kCmdDeadlockedString[] = "AudioPolicyService command thread may be deadlocked\n";

static const int kDumpLockRetries = 50;
static const int kDumpLockSleep = 20000;
static const int kDumpLockSleepUs = 20000;

static bool checkPermission() {
    if (getpid() == IPCThreadState::self()->getCallingPid()) return true;
@@ -563,7 +563,7 @@ static bool tryLock(Mutex& mutex)
            locked = true;
            break;
        }
        usleep(kDumpLockSleep);
        usleep(kDumpLockSleepUs);
    }
    return locked;
}