diff options
author | Glenn Kasten <gkasten@google.com> | 2012-01-19 06:09:05 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-01-19 06:09:05 -0800 |
commit | 86905f445c96743b037eed6360afa956a85b019c (patch) | |
tree | a0d557d7c99a731e2922249e852fb9a07209a2d7 /services/audioflinger/AudioPolicyService.cpp | |
parent | ca42b286a162f5cd6a4a916bfe429abe95780730 (diff) | |
parent | 22ecc912a87099cff8cadc424cd12f85c118673f (diff) | |
download | frameworks_av-86905f445c96743b037eed6360afa956a85b019c.zip frameworks_av-86905f445c96743b037eed6360afa956a85b019c.tar.gz frameworks_av-86905f445c96743b037eed6360afa956a85b019c.tar.bz2 |
Merge "Add units to time periods"
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 3020597..ba9f8b0 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; } |