Fix issue 2153835: AudioFlinger: setParameters() can remain stuck if output thread is terminated.

Wait for the parameter set completed condition with a time out in ThreadBase::setParameters().
Also lock AudioFlinger mutex before accessing thread list in AudioFlinger::setParameters() and keep a strong reference
on the thread being used in case it is exited while processing the request.
1 file changed
tree: b21e44193f4ca006b4c34d4775e5ab5639b50339
  1. awt/
  2. camera/
  3. cmds/
  4. include/
  5. libs/
  6. opengl/
  7. vpn/
  8. MODULE_LICENSE_APACHE2
  9. NOTICE