diff options
author | Glenn Kasten <gkasten@google.com> | 2012-01-09 08:33:38 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-01-18 15:45:55 -0800 |
commit | 22ecc912a87099cff8cadc424cd12f85c118673f (patch) | |
tree | 56a676582d880f5314e52c1b4c0aa8de7acfb26d /services/audioflinger/AudioPolicyService.cpp | |
parent | 04eaf3e5f20d7faa956c0d672024ffb5117f4c26 (diff) | |
download | frameworks_av-22ecc912a87099cff8cadc424cd12f85c118673f.zip frameworks_av-22ecc912a87099cff8cadc424cd12f85c118673f.tar.gz frameworks_av-22ecc912a87099cff8cadc424cd12f85c118673f.tar.bz2 |
Add units to time periods
Change-Id: Ib980e2676cecf5d9b0c2e388da6dc8e370df8abb
Diffstat (limited to 'services/audioflinger/AudioPolicyService.cpp')
-rw-r--r-- | services/audioflinger/AudioPolicyService.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/AudioPolicyService.cpp b/services/audioflinger/AudioPolicyService.cpp index fcf014f..b4da4a1 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; } |