summaryrefslogtreecommitdiffstats
path: root/media/img_utils/src/TiffWriter.cpp
diff options
context:
space:
mode:
authorzunkyu.lee <zunkyu.lee@lge.com>2014-11-07 15:47:32 +0900
committerGlenn Kasten <gkasten@google.com>2014-12-08 15:46:00 -0800
commita78e10495c51d09f92db9c33d34dcc7cd7f28511 (patch)
tree6dc34a425be7c95946e0315878c5ab9b2d125c16 /media/img_utils/src/TiffWriter.cpp
parent1a9c3954a20800dda3d6d18048c7f0edc8c53e6a (diff)
downloadframeworks_av-a78e10495c51d09f92db9c33d34dcc7cd7f28511.zip
frameworks_av-a78e10495c51d09f92db9c33d34dcc7cd7f28511.tar.gz
frameworks_av-a78e10495c51d09f92db9c33d34dcc7cd7f28511.tar.bz2
Prevent ANR when AudioTrack is paused or re-routed
If ClientProxy was interrupted by AudioTrack::pause() just before futex syscall() in obtainBuffer() was called, It will not call releaseBuffer to wake up AudioTrackThread. It puts the AudioTrackThread to sleep and then a deadlock occurs. In this case, CBLK_INTERRUPT flags can't prevent a deadlock, so this patch set mFutex to FUTEX_WAKE during interrupt() to avoid deadlock. A similar problem could occur due to re-route or recovery after mediaserver death. Bug: 18641665 Change-Id: I66fcae43af9a91eb55f6cdb52c644ee6c0999772
Diffstat (limited to 'media/img_utils/src/TiffWriter.cpp')
0 files changed, 0 insertions, 0 deletions