summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2013-09-26 22:58:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-26 22:58:26 +0000
commit0adc67dfc5cedb211c36f06849681a60a32f5805 (patch)
tree699e80ab445a2c03b399477bf4f697f5ed8d315c /services/audioflinger/Threads.h
parent1da3b602130d71ac3bff1a1fdecdc5e0d7b9d701 (diff)
parent4de95592980dba88a35b3dc8f3fd045588387a4f (diff)
downloadframeworks_av-0adc67dfc5cedb211c36f06849681a60a32f5805.zip
frameworks_av-0adc67dfc5cedb211c36f06849681a60a32f5805.tar.gz
frameworks_av-0adc67dfc5cedb211c36f06849681a60a32f5805.tar.bz2
Merge "audioflinger: fix crash when starting offload thread" into klp-dev
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 443b8d7..241424f 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -759,7 +759,7 @@ private:
class AsyncCallbackThread : public Thread {
public:
- AsyncCallbackThread(const sp<OffloadThread>& offloadThread);
+ AsyncCallbackThread(const wp<PlaybackThread>& playbackThread);
virtual ~AsyncCallbackThread();
@@ -776,17 +776,17 @@ public:
void resetDraining();
private:
- wp<OffloadThread> mOffloadThread;
+ const wp<PlaybackThread> mPlaybackThread;
// mWriteAckSequence corresponds to the last write sequence passed by the offload thread via
// setWriteBlocked(). The sequence is shifted one bit to the left and the lsb is used
// to indicate that the callback has been received via resetWriteBlocked()
- uint32_t mWriteAckSequence;
+ uint32_t mWriteAckSequence;
// mDrainSequence corresponds to the last drain sequence passed by the offload thread via
// setDraining(). The sequence is shifted one bit to the left and the lsb is used
// to indicate that the callback has been received via resetDraining()
- uint32_t mDrainSequence;
- Condition mWaitWorkCV;
- Mutex mLock;
+ uint32_t mDrainSequence;
+ Condition mWaitWorkCV;
+ Mutex mLock;
};
class DuplicatingThread : public MixerThread {