summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-09-23 16:10:16 -0700
committerEric Laurent <elaurent@google.com>2010-09-24 09:32:40 -0700
commit98c92599acebb8ca893d54d3dc4c96a0c037f0a8 (patch)
tree67fa604082bb5f070a15e92b5d0318d1d43020de /libs/rs/rsg_ScriptJavaClass.cpp
parent287952c35e148811c106bc0f5036eabf20f71562 (diff)
Fix issue 3007862
Removed a cross deadlock condition between audioflinger and audio policy service mutexes. Audioflinger::createEffect() locks audioflinger mutex and then calls AudioSystem::getOutputForEffect() which ends up in AudioPolicyService::getOutputForEffect() which locks audio policy service mutex. If at the same time, the command thread in audio policy service is processing a command(set volume, set route...), the mutex is locked and the command will call one audioflinger method which in turn will attempt to lock audioflinger mutex. The fix consists in releasing audioflinger mutex before calling getOutputForEffect(). Change-Id: Id44e7feb36e0a295731f6aa97cf32d022edd34d0
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions