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

Issue 2940133003: Use RaceChecker instead of ThreadChecker in a few places. (Closed)

Created:
3 years, 6 months ago by erikvarga1
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Use RaceChecker instead of ThreadChecker in a few places. There are some functions in packet_router.cc and modules/congestion_controller that could be used by different threads, but they're protected using rtc::ThreadChecker which doesn't allow them to be called by more than one thread even if the calls are synchronised. This CL replaces those with rtc::RaceChecker, which allows serialized access of the functions from multiple threads. BUG=webrtc:7826 Review-Url: https://codereview.webrtc.org/2940133003 Cr-Commit-Position: refs/heads/master@{#18628} Committed: https://chromium.googlesource.com/external/webrtc/+/bf5a2fc11bc53a19735dad278990fad0d21e5ec5

Patch Set 1 #

Total comments: 6

Patch Set 2 : Patch 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -17 lines) Patch
M webrtc/modules/congestion_controller/delay_based_bwe.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/include/send_side_congestion_controller.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/send_side_congestion_controller.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M webrtc/modules/pacing/packet_router.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/pacing/packet_router.cc View 1 4 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
erikvarga1
3 years, 6 months ago (2017-06-15 20:59:40 UTC) #3
danilchap
https://codereview.webrtc.org/2940133003/diff/1/webrtc/modules/congestion_controller/delay_based_bwe.h File webrtc/modules/congestion_controller/delay_based_bwe.h (right): https://codereview.webrtc.org/2940133003/diff/1/webrtc/modules/congestion_controller/delay_based_bwe.h#newcode73 webrtc/modules/congestion_controller/delay_based_bwe.h:73: rtc::RaceChecker race_checker_; one of the reason for sync checkers ...
3 years, 6 months ago (2017-06-16 08:23:31 UTC) #4
erikvarga1
https://codereview.webrtc.org/2940133003/diff/1/webrtc/modules/congestion_controller/delay_based_bwe.h File webrtc/modules/congestion_controller/delay_based_bwe.h (right): https://codereview.webrtc.org/2940133003/diff/1/webrtc/modules/congestion_controller/delay_based_bwe.h#newcode73 webrtc/modules/congestion_controller/delay_based_bwe.h:73: rtc::RaceChecker race_checker_; On 2017/06/16 08:23:31, danilchap wrote: > one ...
3 years, 6 months ago (2017-06-16 08:43:25 UTC) #5
danilchap
lgtm
3 years, 6 months ago (2017-06-16 08:52:21 UTC) #6
erikvarga1
Stefan, could you also take a look at this CL? Thanks.
3 years, 6 months ago (2017-06-16 09:12:16 UTC) #8
stefan-webrtc
lgtm
3 years, 6 months ago (2017-06-16 11:06:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2940133003/20001
3 years, 6 months ago (2017-06-16 11:16:57 UTC) #11
commit-bot: I haz the power
3 years, 6 months ago (2017-06-16 12:02:11 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/bf5a2fc11bc53a19735dad278...

Powered by Google App Engine
This is Rietveld 408576698