[mojo] Fix SequenceLocalSyncEventWatcher reset
There are (effectively rare) edge cases where SequenceLocalSyncEventWatcher usage results in sequence's event staying signaled despite having no more registered clients to notify. This leaves the thread stuck in a state where any pending sync wait will effectively busy-loop until it gets a reply rather than blocking as intended. This CL fixes the edge cases to ensure that the event in question is always properly reset when appropriate. Fixed: 11202650 Change-Id: Ib8542f6945b92d0fbfcc232143aba8bcf48f23a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2369676Reviewed-by:Fabrice de Gans-Riberi <fdegans@chromium.org> Commit-Queue: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#801107}
Showing
Please register or sign in to comment