diff options
author | Andy Hung <hunga@google.com> | 2015-03-19 23:12:00 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-19 23:12:01 +0000 |
commit | 7c963e92bc11d4b6a22696c51f9abf42987a1f74 (patch) | |
tree | f927372bf3ce78b90be5619464ec102f1ad83c3d /include | |
parent | b588cf22b2e44f20921550412d443fba55b1343e (diff) | |
parent | 803b3e558022c6d0eb069308339dc84e6e8035dc (diff) | |
download | frameworks_av-7c963e92bc11d4b6a22696c51f9abf42987a1f74.zip frameworks_av-7c963e92bc11d4b6a22696c51f9abf42987a1f74.tar.gz frameworks_av-7c963e92bc11d4b6a22696c51f9abf42987a1f74.tar.bz2 |
Merge "Event driven wake for AudioRecordThread notification changes"
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioRecord.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index a68a9cb..8e0b8f8 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -417,6 +417,7 @@ private: void pause(); // suspend thread from execution at next loop boundary void resume(); // allow thread to execute, if not requested to exit + void wake(); // wake to handle changed notification conditions. private: void pauseInternal(nsecs_t ns = 0LL); @@ -431,7 +432,9 @@ 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 + bool mIgnoreNextPausedInt; // skip any internal pause and go immediately + // to processAudioBuffer() as state may have changed + // since pause time calculated. }; // body of AudioRecordThread::threadLoop() |