diff options
author | Eric Laurent <elaurent@google.com> | 2014-11-19 18:08:38 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-19 18:08:38 +0000 |
commit | 4fd641be9fed70743ca4fe823b69e74c258ce275 (patch) | |
tree | 8dd9231b0d49d1b31aada001e9650f92ff3f3825 /include | |
parent | 2bbc61fe75a98e39c844c034cdcaf4d01b311834 (diff) | |
parent | bbda5ce4782b20f3ed75482e5f73b8d999223438 (diff) | |
download | frameworks_av-4fd641be9fed70743ca4fe823b69e74c258ce275.zip frameworks_av-4fd641be9fed70743ca4fe823b69e74c258ce275.tar.gz frameworks_av-4fd641be9fed70743ca4fe823b69e74c258ce275.tar.bz2 |
am bbda5ce4: Merge "AudioSystem: Add mutex for output cache" into lmp-mr1-dev
* commit 'bbda5ce4782b20f3ed75482e5f73b8d999223438':
AudioSystem: Add mutex for output cache
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioSystem.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index f3b7fbb..d54eca7 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -373,10 +373,11 @@ private: friend class AudioFlingerClient; friend class AudioPolicyServiceClient; - static Mutex gLock; // protects all members except gAudioPolicyService, - // gAudioPolicyServiceClient, and gAudioPortCallback - static Mutex gLockAPS; // protects gAudioPolicyService and gAudioPolicyServiceClient - static Mutex gLockAPC; // protects gAudioPortCallback + static Mutex gLock; // protects gAudioFlinger and gAudioErrorCallback, + static Mutex gLockCache; // protects gOutputs, gPrevInSamplingRate, gPrevInFormat, + // gPrevInChannelMask and gInBuffSize + static Mutex gLockAPS; // protects gAudioPolicyService and gAudioPolicyServiceClient + static Mutex gLockAPC; // protects gAudioPortCallback static sp<IAudioFlinger> gAudioFlinger; static audio_error_callback gAudioErrorCallback; |