DescriptionFixing a couple cases that cause ProcessAllMessageQueues to hang.
The two situations are:
1. A thread is in the process of shutting down, so it won't handle any
more messages.
2. A message queue is cleared before it has a chance to process pending
messages.
In both of those cases, we should consider processing done at that
point.
R=honghaiz@webrtc.org, pthatcher@webrtc.org
Committed: https://crrev.com/fe7d091f57707efdb43f9c83470203369e59cfea
Cr-Commit-Position: refs/heads/master@{#14245}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Responding to comments and adding tests for ProcessAllMessageQueues. #Patch Set 3 : Use MQID_DISPOSE instead of NoOpMessageHandler. #
Messages
Total messages: 14 (5 generated)
|