summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2013-10-14 15:03:38 +0100
committerNarayan Kamath <narayan@google.com>2013-10-14 17:29:57 +0100
commit014e7fa2e90827d911c37bb0ce4d2e10e14d0bb3 (patch)
tree1eebc29942794f1688fde67b9056803b8194355a /services/audioflinger/Threads.h
parentb3cb72a17d9a472883e9e2faa18b42eac533fe99 (diff)
downloadframeworks_av-014e7fa2e90827d911c37bb0ce4d2e10e14d0bb3.zip
frameworks_av-014e7fa2e90827d911c37bb0ce4d2e10e14d0bb3.tar.gz
frameworks_av-014e7fa2e90827d911c37bb0ce4d2e10e14d0bb3.tar.bz2
Make Audio wakelock names less unique.
These wakelocks now show up in the client process, where they might cause wakelock overflows if AudioFlinger threads die often. The client process should be agnostic of audio flinger threading, so don't make the wakelock names rely on audioflinger thread names. Wakelock names now depend only on the audio flinger thread type, and not the ID itself. bug: 11200551 Change-Id: Ia1f71b569cb7502d617b77596abc245f461a6ec0
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 0cb3ef7..802b784 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -251,6 +251,8 @@ protected:
// check if some effects must be suspended when an effect chain is added
void checkSuspendOnAddEffectChain_l(const sp<EffectChain>& chain);
+ String16 getWakeLockTag();
+
virtual void preExit() { }
friend class AudioFlinger; // for mEffectChains