summaryrefslogtreecommitdiff
path: root/libs/rs/rsObjectBase.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2009-09-17 05:12:56 -0700
committer Eric Laurent <elaurent@google.com> 2009-09-17 09:26:04 -0700
commitb9481d8cf6f3ade96ed062dc3f601c777fe4430f (patch)
tree4b6e08fb86055440d681edf00a7d891f08ca4e04 /libs/rs/rsObjectBase.cpp
parent76f0111845f0886f522cfe1eb5ec1dee34181f7c (diff)
Fix issue 2127371: Possible race condition in AudioFlinger::openRecord() when a Track is being destroyed.
The fix consists in locking AudioFlinger::mLock mutex in the TrackBase destructor before clearing the strong pointer to the shared memory client. The mutex is not locked in removeclient() any more which implies that we must make sure that the Client destructor is always called from the TrackBase destructor or that we hold the mLock mutex before calling deleting the Client.
Diffstat (limited to 'libs/rs/rsObjectBase.cpp')
0 files changed, 0 insertions, 0 deletions