summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-11-19 18:14:04 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-19 18:14:04 +0000
commit57426fc6486c6c2fa27f4bc6fcf3349282c3fdd7 (patch)
treebb124ef62b0fecd18f7aa06346f1bc820c44a8f9 /include
parenta97f20bb4f5b770cf4d9655b7d3aaf58284aeeea (diff)
parent4fd641be9fed70743ca4fe823b69e74c258ce275 (diff)
downloadframeworks_av-57426fc6486c6c2fa27f4bc6fcf3349282c3fdd7.zip
frameworks_av-57426fc6486c6c2fa27f4bc6fcf3349282c3fdd7.tar.gz
frameworks_av-57426fc6486c6c2fa27f4bc6fcf3349282c3fdd7.tar.bz2
am 4fd641be: am bbda5ce4: Merge "AudioSystem: Add mutex for output cache" into lmp-mr1-dev
* commit '4fd641be9fed70743ca4fe823b69e74c258ce275': AudioSystem: Add mutex for output cache
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioSystem.h9
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;