DescriptionRevert making HandleWatcher block until no longer waiting on pipe (r285266).
That change causes any thread that uses HandleWatcher to block and wait on the watcher thread (which uses mojo message pump). With the new EDK, this causes hangs on shutdown if we share the IO thread between chrome and the EDK, since if the destruction of HandleWatcher happens on the IO thread, the handle watcher's mojo pump will never wake up (since the IO thread is blocked, so it doesn't get to deliver the control byte read event to MojoMessagePump). Since the EDK already handles the case fine by returning error codes, no need to make threads block.
BUG=394886, 561803
Committed: https://crrev.com/daeca3e623dbefaa485889eff9f7712e0f572d51
Cr-Commit-Position: refs/heads/master@{#362190}
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix android and review comment #Patch Set 3 : update comment (undo change in r283888 #
Messages
Total messages: 18 (7 generated)
|