From: Glenn Kasten Date: Mon, 9 Jan 2012 16:33:38 +0000 (-0800) Subject: Add units to time periods X-Git-Tag: android-x86-4.4-r1~1579^2~292^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=22ecc912a87099cff8cadc424cd12f85c118673f;p=android-x86%2Fframeworks-av.git Add units to time periods Change-Id: Ib980e2676cecf5d9b0c2e388da6dc8e370df8abb --- diff --git a/services/audioflinger/AudioPolicyService.cpp b/services/audioflinger/AudioPolicyService.cpp index fcf014f673..b4da4a14d4 100644 --- a/services/audioflinger/AudioPolicyService.cpp +++ b/services/audioflinger/AudioPolicyService.cpp @@ -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; }