commit | 01df7e8c2dc2b668674481197390d3287687275e | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Thu Aug 15 14:12:39 2024 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Thu Dec 26 14:03:19 2024 -0800 |
tree | 54c143ef3c1c1115d092e0047b73a6a009ecf0e6 | |
parent | 7a31a0ac4c4fd05d5c29e180c0bcdf673160525d [diff] |
audio: Fix stream cleanup sequence Move the cleanup of the stream worker thread from '~StreamCommonImpl' up to concrete stream implementations. This is because when the worker thread is stopping, it calls 'DriverInterface::shutdown' method of the stream. At the time when '~StreamCommonImpl' is running, the concrete stream class has already been destroyed. The cleanup actually only happens in the case when the client did not close the stream properly via 'IStreamCommon.close', or when the stream creation has failed in the middle. Bug: 355804294 Test: atest VtsHalAudioCoreTargetTest (cherry picked from https://android-review.googlesource.com/q/commit:0413d077f76df5fe464e4f39ab1efa091df1019e) Merged-In: Ie86f682af202976ed48d24338b2dffcfd20d9a76 Change-Id: Ie86f682af202976ed48d24338b2dffcfd20d9a76