AudioTrack: Fix for race condition
This fixes a race condition between releaseBuffer and flush. An AudioTrack::releaseBuffer() can be delayed (pre-empted) by AudioTrack::pause/flush() and ServerProxy::obtainBuffer() calls leading to a situation where an incorrect position is copied to the cblk <<Change to be tested>> Change-Id: I70074d4824ba8c7fa86c9f9ef8cc182de9172ab9 (cherry picked from commit ec237ff01ca194bf0e29933f916a30b8f83c8ace) (cherry picked from commit 6984cd7b9e99ffa48872cf9316c68d5ae51ad3c5)
Loading
Please register or sign in to comment