commit | 94862529bf1d1506bc09a05788e56aafb5c6e7f5 | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Wed Sep 13 21:31:36 2017 -0700 |
committer | Phil Burk <philburk@google.com> | Tue Dec 05 09:28:38 2017 -0800 |
tree | 7eb5ea6b757f88bfb25f667a88ee684226243470 | |
parent | 3a5608cf069994725f6e50950f0462e91dcd8c51 [diff] |
aaudio: defer closing of stream until safe When a client asks to close the stream, we mark it as closeable. When the last client finishes with the stream then we actually close it. References to the stream are counted. This will prevent a stream from getting closed while another thread is trying to start it or stop it, etc. Test: CTS nativemedia/aaudio Change-Id: Ic1c7eceded6bff9899f37a5e7d9f2b695b8cdc97