From 22ecc912a87099cff8cadc424cd12f85c118673f Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Mon, 9 Jan 2012 08:33:38 -0800 Subject: [PATCH] Add units to time periods Change-Id: Ib980e2676cecf5d9b0c2e388da6dc8e370df8abb --- services/audioflinger/AudioPolicyService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.11.0