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

Issue 1903393004: Added network thread to rtc::BaseChannel (Closed)

Created:
4 years, 8 months ago by danilchap
Modified:
4 years, 7 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, perkj_webrtc, stefan-webrtc, pbos-webrtc, juberti1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adds network thread to rtc::BaseChannel BaseChannel do calls to transport_channel on network_thread, while keep calls to media_engine on worker_thread. It still works when network_thread == worker_thread. BUG=webrtc:5645 R=pthatcher@webrtc.org Committed: https://crrev.com/33b01f2162af32457e0a6a6e0eb670254701df61 Cr-Commit-Position: refs/heads/master@{#12690}

Patch Set 1 #

Patch Set 2 : fix tsan2 #

Patch Set 3 : reverted unrelated style changes #

Patch Set 4 : #

Patch Set 5 : ChannelManagerTests adjusted to double-thread model #

Patch Set 6 : rebase & Post NetworkRouteChange to worker thread. #

Total comments: 8

Patch Set 7 : feedback #

Total comments: 32

Patch Set 8 : feedback #

Patch Set 9 : rebase #

Patch Set 10 : feedback #

Patch Set 11 : include fix #

Patch Set 12 : win_compile #

Patch Set 13 : BaseChannel ensures SentPacket signal on worker thread. #

Total comments: 10

Patch Set 14 : feedback #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : win_x64_rel #

Patch Set 17 : fix flakiness of WebRtcSessionTest.TestPacketOptionsAndOnPacketSent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1912 lines, -973 lines) Patch
M webrtc/api/peerconnectionfactory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/api/statscollector_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +44 lines, -30 lines 0 comments Download
M webrtc/api/webrtcsession.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -8 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -4 lines 0 comments Download
M webrtc/pc/channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 20 chunks +150 lines, -107 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 59 chunks +300 lines, -180 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 52 chunks +1347 lines, -608 lines 0 comments Download
M webrtc/pc/channelmanager.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -4 lines 0 comments Download
M webrtc/pc/channelmanager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +27 lines, -26 lines 0 comments Download
M webrtc/pc/channelmanager_unittest.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
danilchap
This CL is main part of introducing network thread to improve bwe prober. (https://codereview.webrtc.org/1888903003/). It ...
4 years, 8 months ago (2016-04-22 12:27:15 UTC) #3
perkj_webrtc
On 2016/04/22 12:27:15, danilchap wrote: > This CL is main part of introducing network thread ...
4 years, 8 months ago (2016-04-25 14:42:13 UTC) #5
perkj_webrtc
It probably make sense to have a separate network thread. But I don't think that ...
4 years, 7 months ago (2016-04-29 07:46:12 UTC) #6
danilchap
https://codereview.webrtc.org/1903393004/diff/100001/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/1903393004/diff/100001/webrtc/pc/channel.cc#newcode567 webrtc/pc/channel.cc:567: media_channel()->OnNetworkRouteChanged(message->transport_name, On 2016/04/29 07:46:12, perkj_webrtc wrote: > Why not ...
4 years, 7 months ago (2016-04-29 08:47:00 UTC) #8
pthatcher1
https://codereview.webrtc.org/1903393004/diff/120001/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/1903393004/diff/120001/webrtc/pc/channel.cc#newcode212 webrtc/pc/channel.cc:212: network_thread_->Invoke<void>([this] { It seems risky to have the BaseChannel ...
4 years, 7 months ago (2016-04-29 23:36:24 UTC) #9
danilchap
Thank you for feedback. Changed all places where I understand the reason, but there were ...
4 years, 7 months ago (2016-05-02 14:50:34 UTC) #10
pthatcher1
lgtm Please make the few naming changes and "big comment". I'm willing to review those ...
4 years, 7 months ago (2016-05-11 04:50:02 UTC) #11
danilchap
https://codereview.webrtc.org/1903393004/diff/120001/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/1903393004/diff/120001/webrtc/pc/channel.cc#newcode212 webrtc/pc/channel.cc:212: network_thread_->Invoke<void>([this] { On 2016/05/11 04:50:01, pthatcher1 wrote: > On ...
4 years, 7 months ago (2016-05-11 12:19:16 UTC) #13
stefan-webrtc
https://codereview.webrtc.org/1903393004/diff/260001/webrtc/pc/channel.h File webrtc/pc/channel.h (right): https://codereview.webrtc.org/1903393004/diff/260001/webrtc/pc/channel.h#newcode54 webrtc/pc/channel.h:54: // BaseChannel assumes signaling and other threads allowed to ...
4 years, 7 months ago (2016-05-11 13:10:26 UTC) #14
danilchap
https://codereview.webrtc.org/1903393004/diff/260001/webrtc/pc/channel.h File webrtc/pc/channel.h (right): https://codereview.webrtc.org/1903393004/diff/260001/webrtc/pc/channel.h#newcode54 webrtc/pc/channel.h:54: // BaseChannel assumes signaling and other threads allowed to ...
4 years, 7 months ago (2016-05-11 14:15:30 UTC) #15
danilchap
Committed patchset #17 (id:320001) manually as 33b01f2162af32457e0a6a6e0eb670254701df61 (presubmit successful).
4 years, 7 months ago (2016-05-11 17:55:47 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 17:55:48 UTC) #19
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/33b01f2162af32457e0a6a6e0eb670254701df61
Cr-Commit-Position: refs/heads/master@{#12690}

Powered by Google App Engine
This is Rietveld 408576698