diff options
author | Andy Hung <hunga@google.com> | 2020-03-03 13:40:49 -0800 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2020-03-03 14:08:24 -0800 |
commit | eaeced3383fc398e657b02452952f1a3db6285a1 (patch) | |
tree | 5a2fafa70e9ed853a22de22343d2219a63a45f73 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ee47af62071c43d434c6cf06b3974ee89b7ce748 (diff) |
SoundPool: Fix StreamManager JavaThread shutdown
std::future destructor only blocks for ready when created by std::async,
so do a wait in the JavaThread destructor.
Do not signal that the thread is closed until we really are finished
with all member variable access.
This fixes a rare race condition.
Test: SoundPool stress test
Test: SoundPoolAacTest SoundPoolHapticTest SoundPoolMidiTest SoundPoolOggTest
Bug: 150517918
Change-Id: I412143726956ee100069f711dd39b1d59ac100b0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions