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

Issue 2437913003: Replaced thread checker with race checker in AudioMixer. (Closed)

Created:
4 years, 2 months ago by aleloi
Modified:
4 years, 2 months ago
Reviewers:
aleloi2, kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, hlundin-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replaced thread checker with race checker in AudioMixer. This change is due to an incorrect understanding of the threading model in Chrome. The new AudioMixer has a thread checker to ensure that mixing is always done from a single thread. Mixing is done on the Audio Output Thread. When run in Chrome, it can change. Even if the thread changes, there is never more than one audio thread, and mixing is done sequentially. The threading checks and variable access checks are replaced with rtc::RaceChecker counterparts. NOTRY=True BUG=webrtc:6346 Committed: https://crrev.com/920d30bc743b76d30c6cae7ad4c97af2e6c24e4c Cr-Commit-Position: refs/heads/master@{#14712}

Patch Set 1 #

Total comments: 7

Patch Set 2 : reworded comments and removed lock addresses. #

Patch Set 3 : Rebase after landing dependencies. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -17 lines) Patch
M webrtc/modules/audio_mixer/audio_mixer_impl.h View 1 2 2 chunks +10 lines, -10 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer_impl.cc View 1 2 6 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
aleloi
Short change, please take a look! https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h File webrtc/modules/audio_mixer/audio_mixer_impl.h (right): https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h#newcode105 webrtc/modules/audio_mixer/audio_mixer_impl.h:105: // Checks that ...
4 years, 2 months ago (2016-10-20 09:24:23 UTC) #2
kwiberg-webrtc
lgtm, but see comments https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h File webrtc/modules/audio_mixer/audio_mixer_impl.h (right): https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h#newcode93 webrtc/modules/audio_mixer/audio_mixer_impl.h:93: int output_frequency_ GUARDED_BY(&race_checker_); Is the ...
4 years, 2 months ago (2016-10-20 09:37:14 UTC) #4
aleloi
https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h File webrtc/modules/audio_mixer/audio_mixer_impl.h (right): https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h#newcode93 webrtc/modules/audio_mixer/audio_mixer_impl.h:93: int output_frequency_ GUARDED_BY(&race_checker_); On 2016/10/20 09:37:14, kwiberg-webrtc wrote: > ...
4 years, 2 months ago (2016-10-20 09:52:02 UTC) #5
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h File webrtc/modules/audio_mixer/audio_mixer_impl.h (right): https://codereview.webrtc.org/2437913003/diff/1/webrtc/modules/audio_mixer/audio_mixer_impl.h#newcode93 webrtc/modules/audio_mixer/audio_mixer_impl.h:93: int output_frequency_ GUARDED_BY(&race_checker_); On 2016/10/20 09:52:01, aleloi wrote: ...
4 years, 2 months ago (2016-10-20 10:47:13 UTC) #6
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/2437913003/40001
4 years, 2 months ago (2016-10-20 15:20:01 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 2 months ago (2016-10-20 17:20:24 UTC) #12
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/2437913003/40001
4 years, 2 months ago (2016-10-20 20:47:46 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-20 21:23:27 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-20 21:23:37 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/920d30bc743b76d30c6cae7ad4c97af2e6c24e4c
Cr-Commit-Position: refs/heads/master@{#14712}

Powered by Google App Engine
This is Rietveld 408576698