Index: webrtc/base/messagequeue.h |
diff --git a/webrtc/base/messagequeue.h b/webrtc/base/messagequeue.h |
index 628ce4433b824396c952400836d39bd8df023a6c..84b56f3586e906d2217e7d4434ae6859b1ce0a79 100644 |
--- a/webrtc/base/messagequeue.h |
+++ b/webrtc/base/messagequeue.h |
@@ -209,6 +209,13 @@ class MessageQueue { |
virtual void Quit(); |
virtual bool IsQuitting(); |
virtual void Restart(); |
+ // If true, MessageQueueManager::ProcessAllMessageQueues will wait |
+ // for the messages to be processed. Otherwise, it will skip this |
+ // message queue and not wait for it. We need this because some |
+ // subclasses of Thread don't process messsages and break |
+ // ProcessAllMessagesQueues. Those threads needs to set this to |
+ // false. |
Taylor Brandstetter
2017/02/06 19:23:43
I'd suggest moving this comment to the CC file.
|
+ virtual bool WaitForProcess(); |
Taylor Brandstetter
2017/02/06 19:23:42
I'd suggest renaming this to "IsProcessingMessages
|
// Get() will process I/O until: |
// 1) A message is available (returns true) |