commit | 1f95051c77e212ff9847ce35dc4c1d0c92885ace | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Thu Apr 11 19:03:35 2024 -0700 |
committer | Andy Hung <hunga@google.com> | Fri Apr 12 14:20:54 2024 -0700 |
tree | 01550d10e12b3fa98e74f8903a8385a114a96169 | |
parent | 5452431362c725f641178930efcebbc00afd7bf1 [diff] |
AudioTrack: Enforce worker thread join in dtor Ensure that the AudioTrackThread is joined in dtor. In some cases if the dtor was called while the worker thread was in restoreTrack_l() (which had an error due to audioserver restart) the mStatus check incorrectly prevented join. Test: atest CtsMediaAudioTestCases Test: YT playback and killing audioserver Test: atest test_callback_race Bug: 333897807 Change-Id: I144710cb9865d45508d2f97402f748dad7e63a07