summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2013-09-20 11:20:56 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-20 11:20:56 -0700
commitd2b80a1fb90cb4dc3f569e716af0279c1e1ea72d (patch)
tree9094262e799f5ff66acd45a0bae59a7de863349c /services/audioflinger/Threads.h
parentbd1be321f7d3626305c1c6d0b006768b5130fedd (diff)
parentce3e7cb0bd09e7861d417b7d45c1e5921f10a93f (diff)
downloadframeworks_av-d2b80a1fb90cb4dc3f569e716af0279c1e1ea72d.zip
frameworks_av-d2b80a1fb90cb4dc3f569e716af0279c1e1ea72d.tar.gz
frameworks_av-d2b80a1fb90cb4dc3f569e716af0279c1e1ea72d.tar.bz2
am ce3e7cb0: am fbb2609f: Merge "audioflinger: fix lost offload thread resume event" into klp-dev
* commit 'ce3e7cb0bd09e7861d417b7d45c1e5921f10a93f': audioflinger: fix lost offload thread resume event
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 7999436..51b134b 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -528,7 +528,7 @@ private:
status_t addTrack_l(const sp<Track>& track);
bool destroyTrack_l(const sp<Track>& track);
void removeTrack_l(const sp<Track>& track);
- void signal_l();
+ void broadcast_l();
void readOutputParameters();
@@ -592,6 +592,8 @@ private:
// Bit 0 is reset by the async callback thread calling resetDraining(). Out of sequence
// callbacks are ignored.
uint32_t mDrainSequence;
+ // A condition that must be evaluated by prepareTrack_l() has changed and we must not wait
+ // for async write callback in the thread loop before evaluating it
bool mSignalPending;
sp<AsyncCallbackThread> mCallbackThread;