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

Commit 22ecc912 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Add units to time periods

Change-Id: Ib980e2676cecf5d9b0c2e388da6dc8e370df8abb
parent 04eaf3e5
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;
}