summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@google.com> 2023-03-28 10:26:28 -0600
committer Jeff Sharkey <jsharkey@google.com> 2023-04-11 14:53:25 -0600
commit3b8c41aba871c8aa7a7a6dd8c2aa2b2a25dad905 (patch)
tree356054d7bf95ad86663db054953b231b61e84545 /opengl/java
parentd5b0d8c5246d75703a76001e64e5ec181ec6aaf2 (diff)
Reland: More robust updating of "runnable" list.
Whenever BroadcastProcessQueue.getRunnableAt() changes, we need to check its position in the "runnable" list to ensure it stays sorted. We've been returning boolean values to indicate when a caller should invoke updateRunnableList(), so we expand this to more methods that can have side-effects, and use the "@CheckResult" annotation to ensure callers don't forget their duty. It's okay to err on the side of calling updateRunnableList() when unsure, since it has a fast-path that returns quickly if a queue is already sorted correctly. Bug: 274681945 Test: atest FrameworksMockingServicesTests:BroadcastQueueTest Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest Test: atest FrameworksMockingServicesTests:BroadcastRecordTest Change-Id: I877c5f179ba010c53e52d54c75c47583a608ec95
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions