summaryrefslogtreecommitdiffstats
path: root/include/media/AudioRecord.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-13 09:59:51 -0800
committerGlenn Kasten <gkasten@google.com>2014-01-13 13:58:58 -0800
commit41721bb796da589f8a669d1db7687a0da8f88761 (patch)
tree1b96e9960396c6a8aed03afe63911c721e30a132 /include/media/AudioRecord.h
parentaaa42e57797db140ead1068dce6340ffd33fa005 (diff)
downloadframeworks_av-41721bb796da589f8a669d1db7687a0da8f88761.zip
frameworks_av-41721bb796da589f8a669d1db7687a0da8f88761.tar.gz
frameworks_av-41721bb796da589f8a669d1db7687a0da8f88761.tar.bz2
Fix race condition in AudioRecord::pause followed by start
Bug: 11148722 Change-Id: Ia1e14133d73ac301fe06a047e70a573911822630
Diffstat (limited to 'include/media/AudioRecord.h')
-rw-r--r--include/media/AudioRecord.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h
index b2e4518..c98ca8a 100644
--- a/include/media/AudioRecord.h
+++ b/include/media/AudioRecord.h
@@ -412,6 +412,7 @@ private:
bool mPaused; // whether thread is requested to pause at next loop entry
bool mPausedInt; // whether thread internally requests pause
nsecs_t mPausedNs; // if mPausedInt then associated timeout, otherwise ignored
+ bool mIgnoreNextPausedInt; // whether to ignore next mPausedInt request
};
// body of AudioRecordThread::threadLoop()