commit | 59a8923027d2d6a155c0fa434ae65559318da4b6 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Sun Jun 08 14:14:17 2014 -0700 |
committer | Eric Laurent <elaurent@google.com> | Sun Jun 08 14:16:32 2014 -0700 |
tree | abab0761e566b204ef399689ef6e1bd5004357b4 | |
parent | 7e45ef9db7446d33c941961c14555413641e444b [diff] |
audio policy service: fix potential deadlock in destructor In the AudioCommandThread loop, release mLock before releasing the strong reference on the service as AudioPolicyService destructor calls AudioCommandThread::exit() which acquires mLock. Also check exiPending in thread loop before processing pending commands or sleeping. Bug: 15449050. Change-Id: I148bf21bd67ef721b5b5ee2c1a6afb185c59daa3