summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Mark Fasheh <mfasheh@google.com> 2025-04-04 19:51:25 +0000
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-04-08 13:42:48 -0700
commit6f0fe56caf17a3ca9569c09f81823b4c1c21e447 (patch)
tree8d5fd8942f3d6a00e61fe8f92ef99c63ae79a7ad /api/api.go
parent6eb6ef6c3335a624e31e553b5557031518406ee6 (diff)
Avoid races between nextMessage() and stackHasMessages()
Always check if the stack is draining before we exit stackHasMessages(). - This will ensure that next has put any pending messages into the priority queues before we search them. Bug: 396569494 Flag: EXEMPT - bugfix Test: atest MessageQueueTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:19f88e9f24ef7bc899aa3410bf8d5c756c6155ff) Merged-In: If3259e13060baae4125a4977519a7f08390f79cb Change-Id: If3259e13060baae4125a4977519a7f08390f79cb
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions