summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorYtai Ben-Tsvi <ytai@google.com>2021-01-19 11:55:09 -0800
committerYtai Ben-Tsvi <ytai@google.com>2021-01-19 12:00:01 -0800
commit139f7c23898bff49ea6eb9a1f6cdb7e43d28d8ac (patch)
tree7764c531cdba47bc232f4fd9160ea7d9cf5ce59c /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentcae6ddb11d77cfc34abb5fb895b8b1361f67a414 (diff)
Fix race condition in SoundTriggerHw2Enforcer
Since HIDL doesn't guarantee message ordering between sync calls into the HAL and async calls coming from the HAL, we have a rare possibility of a race condition if a detection event callback arrives before the startRecognition call returns. This change addresses that. We do so by holding the lock during the calls into the HAL. We do NOT hold the lock during the the "upward" calls to avoid deadlocks. Fixes: 177795410 Test: Manual verification of STHAL operation. Sent patch to bug reporter to apply and test. Change-Id: Ie042a92afa998d6d78786942146e3c533c401cd5
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions