Skip to content

Commit 6808516

Browse files
gkastenAndroid (Google) Code Review
authored andcommitted
Merge "Add units to time periods"
2 parents f4a93d0 + 22c4241 commit 6808516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/audioflinger/AudioPolicyService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static const char kDeadlockedString[] = "AudioPolicyService may be deadlocked\n"
4747
static const char kCmdDeadlockedString[] = "AudioPolicyService command thread may be deadlocked\n";
4848

4949
static const int kDumpLockRetries = 50;
50-
static const int kDumpLockSleep = 20000;
50+
static const int kDumpLockSleepUs = 20000;
5151

5252
static bool checkPermission() {
5353
if (getpid() == IPCThreadState::self()->getCallingPid()) return true;
@@ -563,7 +563,7 @@ static bool tryLock(Mutex& mutex)
563563
locked = true;
564564
break;
565565
}
566-
usleep(kDumpLockSleep);
566+
usleep(kDumpLockSleepUs);
567567
}
568568
return locked;
569569
}

0 commit comments

Comments
 (0)