commit | 5ff3b953112ccb7414d99f501e349d4d795d746a | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Fri Apr 02 17:29:11 2021 +0000 |
committer | Phil Burk <philburk@google.com> | Fri Apr 02 21:56:37 2021 +0000 |
tree | d4675a82922bcdab53557e1db4f818dcfa3bde70 | |
parent | 6134b84b26ea7071891f5b38fd2783f6c227b7e6 [diff] |
aaudio: check for callback thread outside the lock Calling AAudioStream_requestStop() from a callback is illegal. But it should just return and error and not hang. The hang can occur if AAudioStream_close() is called at the same time from another thread. Bug: 184370309 Test: adb shell test_disconnect_race Change-Id: I5e0752611d4d3d3dd994a10e82a339fa39e65d42