Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1899)

Unified Diff: webrtc/base/thread.cc

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/base/thread.cc
diff --git a/webrtc/base/thread.cc b/webrtc/base/thread.cc
index 3971169ae7d21eba89e9a6512556a337daa1a9ec..addbf60b0e6ce142fc0ed343eda372f2fddcb753 100644
--- a/webrtc/base/thread.cc
+++ b/webrtc/base/thread.cc
@@ -343,7 +343,10 @@ void Thread::Stop() {
Join();
}
-void Thread::Send(MessageHandler* phandler, uint32_t id, MessageData* pdata) {
+void Thread::Send(const Location& posted_from,
+ MessageHandler* phandler,
+ uint32_t id,
+ MessageData* pdata) {
if (fStop_)
return;
@@ -351,6 +354,7 @@ void Thread::Send(MessageHandler* phandler, uint32_t id, MessageData* pdata) {
// of "thread", like Win32 SendMessage. If in the right context,
// call the handler directly.
Message msg;
+ msg.posted_from = posted_from;
msg.phandler = phandler;
msg.message_id = id;
msg.pdata = pdata;

Powered by Google App Engine
This is Rietveld 408576698