MCPcopy Create free account
hub / github.com/anyrtcIO-Community/anyRTC-RTMP-OpenSource / Dispatch

Method Dispatch

webrtc/base/messagequeue.cc:498–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void MessageQueue::Dispatch(Message *pmsg) {
499 TRACE_EVENT2("webrtc", "MessageQueue::Dispatch", "src_file_and_line",
500 pmsg->posted_from.file_and_line(), "src_func",
501 pmsg->posted_from.function_name());
502 int64_t start_time = TimeMillis();
503 pmsg->phandler->OnMessage(pmsg);
504 int64_t end_time = TimeMillis();
505 int64_t diff = TimeDiff(end_time, start_time);
506 if (diff >= kSlowDispatchLoggingThreshold) {
507 LOG(LS_INFO) << "Message took " << diff << "ms to dispatch. Posted from: "
508 << pmsg->posted_from.ToString();
509 }
510}
511
512} // namespace rtc

Callers 3

PumpMethod · 0.80
RecvFromMethod · 0.80

Calls 6

TimeMillisFunction · 0.85
TimeDiffFunction · 0.85
file_and_lineMethod · 0.80
function_nameMethod · 0.80
OnMessageMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected