diff options
author | Ytai Ben-Tsvi <ytai@google.com> | 2020-06-18 11:52:39 -0700 |
---|---|---|
committer | Ytai Ben-Tsvi <ytai@google.com> | 2020-06-23 09:10:06 -0700 |
commit | 21c886ccf68e99dec630ecbe2f179bc199c9900a (patch) | |
tree | 2bd13e96811226c830cbcc522aeb7734879e2e17 /rs/java/android/renderscript/Program.java | |
parent | df38e692a589f65e362d21394afb76a417955ee8 (diff) |
Fix SoundTriggerMiddleware deadlock issues
This change enforces strict lock ordering between the various layers
of the service and the audio policy lock. Previously, we were exposed
to various deadlock scenarios due to nested locking done without
consistent lock ordering, specifically in cases involving callbacks
from SoundTriggerModule to SoundTriggerMiddlewareValidation.
Change-Id: I28382d10c7bc7faaa8f9b33dda3aa9c94a68061e
Bug: 159151235
Test: Manually disable concurrent capture, verify basic soundtrigger
functionality and do some stress testing by enabling/disabling
recording quickly and check for deadlocks.
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions