summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSimon Bowden <sbowden@google.com>2021-08-05 12:46:45 +0000
committerSimon Bowden <sbowden@google.com>2021-08-05 12:46:45 +0000
commit7ab12ba890c7559b81dd627f4aad5aca7a58d281 (patch)
tree0f6d027fcd382d2d6e0101268b67d57fc252e67d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5528d08a4f77aeebdebacc55b6c3a2eec685d323 (diff)
Fix a race condition between calculateWaitTime and actually waiting.
When the race was lost with a completion callback, the operation being waited upon may have been de-queued by the completion callback for immediate execution, but the thread was still proceeding with the wait. This caused flaky tests as the extra delay caused the thread to take longer to complete, and the newly extended callback delay happened to coincide with the test's wait timeout. Consequently, the test's wait timeout is shortened slightly to make it clearer when the issue is caused by "falling into" the OffStep callback delay, which isn't intended to be a normal behavior. Test: manual atest Bug: 194408223 Change-Id: I97ec74bbc26171a4384ed9ddd7e2130fb8004b9b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions