Index: webrtc/base/thread.h |
diff --git a/webrtc/base/thread.h b/webrtc/base/thread.h |
index 29b78e18452a28b59f844bcc81432949ee358e4e..35d624f712a516acf0661658a887078c896950e0 100644 |
--- a/webrtc/base/thread.h |
+++ b/webrtc/base/thread.h |
@@ -179,8 +179,9 @@ class LOCKABLE Thread : public MessageQueue { |
// ProcessMessages will process I/O and dispatch messages until: |
// 1) cms milliseconds have elapsed (returns true) |
- // 2) Stop() is called (returns false) |
- bool ProcessMessages(int cms); |
+ // 2) message_limit messages have been processed (by default: no limit) |
+ // 3) Stop() is called (returns false) |
+ bool ProcessMessages(int cms, int messages = 0); |
// Returns true if this is a thread that we created using the standard |
// constructor, false if it was created by a call to |