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

Issue 1607353002: Swap use of CriticalSectionWrapper with rtc::CriticalSection in voice_engine/ (Closed)

Created:
4 years, 11 months ago by tommi
Modified:
4 years, 6 months ago
Reviewers:
the sun, henrika_webrtc
CC:
webrtc-reviews_webrtc.org, henrika_webrtc, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Swap use of CriticalSectionWrapper with rtc::CriticalSection in voice_engine/ Also remove mischievous tab character! This is a part of getting rid of CriticalSectionWrapper and makes the code slightly simpler. BUG= Committed: https://crrev.com/31fc21f4545fe7ccb32eb83e5de51a07988a408e Cr-Commit-Position: refs/heads/master@{#11346}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Address comments #

Patch Set 3 : Remove mutable #

Patch Set 4 : Fix bug in monitor_module.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -293 lines) Patch
M webrtc/voice_engine/channel.h View 1 10 chunks +21 lines, -23 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 61 chunks +57 lines, -71 lines 0 comments Download
M webrtc/voice_engine/channel_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/channel_manager.cc View 6 chunks +6 lines, -7 lines 0 comments Download
M webrtc/voice_engine/dtmf_inband.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/dtmf_inband.cc View 1 12 chunks +11 lines, -12 lines 0 comments Download
M webrtc/voice_engine/dtmf_inband_queue.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/dtmf_inband_queue.cc View 4 chunks +4 lines, -6 lines 0 comments Download
M webrtc/voice_engine/level_indicator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/level_indicator.cc View 5 chunks +4 lines, -7 lines 0 comments Download
M webrtc/voice_engine/monitor_module.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/voice_engine/monitor_module.cc View 1 2 3 4 chunks +3 lines, -6 lines 0 comments Download
M webrtc/voice_engine/output_mixer.h View 3 chunks +3 lines, -4 lines 0 comments Download
M webrtc/voice_engine/output_mixer.cc View 12 chunks +9 lines, -14 lines 0 comments Download
M webrtc/voice_engine/shared_data.h View 4 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/shared_data.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M webrtc/voice_engine/statistics.h View 2 chunks +2 lines, -3 lines 0 comments Download
M webrtc/voice_engine/statistics.cc View 5 chunks +17 lines, -18 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fakes/conference_transport.h View 2 chunks +5 lines, -6 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fakes/conference_transport.cc View 5 chunks +6 lines, -8 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixture.h View 6 chunks +8 lines, -9 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_test.cc View 4 chunks +5 lines, -7 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_standard_test.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/transmit_mixer.h View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/voice_engine/transmit_mixer.cc View 30 chunks +29 lines, -34 lines 0 comments Download
M webrtc/voice_engine/voe_audio_processing_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_base_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_base_impl.cc View 16 chunks +16 lines, -19 lines 0 comments Download
M webrtc/voice_engine/voe_codec_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_dtmf_impl.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/voe_external_media_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_file_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_hardware_impl.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M webrtc/voice_engine/voe_neteq_stats_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_network_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_rtp_rtcp_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_video_sync_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_volume_control_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voice_engine_impl.cc View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
tommi
hej Fredrik - please take a look https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/statistics.cc File webrtc/voice_engine/statistics.cc (right): https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/statistics.cc#newcode63 webrtc/voice_engine/statistics.cc:63: rtc::CritScope cs(&lock_); ...
4 years, 11 months ago (2016-01-20 17:34:48 UTC) #2
henrika_webrtc
Soo many locks. Nice work Tommi. Imagine if we could add thread checks and remove ...
4 years, 11 months ago (2016-01-21 08:50:48 UTC) #4
tommi
Yes, I think there are many opportunities there to figure out what the threading model ...
4 years, 11 months ago (2016-01-21 08:57:29 UTC) #5
the sun
Nice work! LGTM with a few nits. https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/channel.cc#newcode186 webrtc/voice_engine/channel.cc:186: mutable rtc::CriticalSection ...
4 years, 11 months ago (2016-01-21 13:07:28 UTC) #6
tommi
Address comments
4 years, 11 months ago (2016-01-21 15:23:58 UTC) #7
tommi
Remove mutable
4 years, 11 months ago (2016-01-21 15:27:22 UTC) #8
tommi
all done except for the cs vs lock change. I figured I'd keep the original ...
4 years, 11 months ago (2016-01-21 15:29:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607353002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607353002/40001
4 years, 11 months ago (2016-01-21 15:29:42 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/12006) linux_compile_dbg on tryserver.webrtc (JOB_FAILED, ...
4 years, 11 months ago (2016-01-21 15:31:22 UTC) #14
tommi
Fix bug in monitor_module.cc
4 years, 11 months ago (2016-01-21 15:37:09 UTC) #15
tommi
https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/monitor_module.h File webrtc/voice_engine/monitor_module.h (right): https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/monitor_module.h#newcode48 webrtc/voice_engine/monitor_module.h:48: mutable rtc::CriticalSection _callbackCritSect; On 2016/01/21 15:29:23, tommi-webrtc wrote: > ...
4 years, 11 months ago (2016-01-21 15:37:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607353002/60001
4 years, 11 months ago (2016-01-21 15:37:32 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 11 months ago (2016-01-21 17:37:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1607353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1607353002/60001
4 years, 11 months ago (2016-01-21 18:36:13 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-21 18:37:39 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/31fc21f4545fe7ccb32eb83e5de51a07988a408e Cr-Commit-Position: refs/heads/master@{#11346}
4 years, 11 months ago (2016-01-21 18:37:54 UTC) #26
the sun
4 years, 11 months ago (2016-01-21 19:28:45 UTC) #27
Message was sent while issue was closed.
https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/monitor_m...
File webrtc/voice_engine/monitor_module.h (right):

https://codereview.webrtc.org/1607353002/diff/1/webrtc/voice_engine/monitor_m...
webrtc/voice_engine/monitor_module.h:48: mutable rtc::CriticalSection
_callbackCritSect;
On 2016/01/21 15:37:15, tommi-webrtc wrote:
> On 2016/01/21 15:29:23, tommi-webrtc wrote:
> > On 2016/01/21 13:07:28, the sun wrote:
> > > nits: remove mutable, add GUARDED_BY to _observerPtr, and put lock first.
> > 
> > Done.
> 
> Oh and that nit uncovered a bug in the code! Nice.

How about that! :)

Powered by Google App Engine
This is Rietveld 408576698