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

Issue 2749973003: Added locking when getting echo likelihood stats. (Closed)

Created:
3 years, 9 months ago by ivoc
Modified:
3 years, 9 months ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org, AleBzk, peah-webrtc, Andrew MacDonald, aleloi, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added locking when getting echo likelihood stats. Currently no lock is taken when returning echo likelihood stats, which causes a race condition between the thread getting the stats and the thread running the echo detector. This CL resolves the issue by adding locking. BUG=webrtc:7346 Review-Url: https://codereview.webrtc.org/2749973003 Cr-Commit-Position: refs/heads/master@{#17270} Committed: https://chromium.googlesource.com/external/webrtc/+/9c192b2b06cb012b3f515923aeb0a3a0f9a09025

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 chunk +8 lines, -4 lines 8 comments Download

Messages

Total messages: 14 (5 generated)
ivoc
Hi Henrik, PTAL.
3 years, 9 months ago (2017-03-15 15:02:41 UTC) #3
tommi
drive-by https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode327 webrtc/modules/audio_processing/audio_processing_impl.cc:327: rtc::CritScope cs_render(&crit_render_); ... any idea why we're grabbing ...
3 years, 9 months ago (2017-03-15 16:14:45 UTC) #4
ivoc
https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode327 webrtc/modules/audio_processing/audio_processing_impl.cc:327: rtc::CritScope cs_render(&crit_render_); On 2017/03/15 16:14:45, tommi (webrtc) wrote: > ...
3 years, 9 months ago (2017-03-15 17:14:15 UTC) #5
tommi
Thanks Ivo - some more info below that I hope is helpful. https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc ...
3 years, 9 months ago (2017-03-15 17:27:59 UTC) #6
ivoc
https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode327 webrtc/modules/audio_processing/audio_processing_impl.cc:327: rtc::CritScope cs_render(&crit_render_); On 2017/03/15 17:27:59, tommi (webrtc) wrote: > ...
3 years, 9 months ago (2017-03-15 19:30:44 UTC) #7
tommi
On 2017/03/15 19:30:44, ivoc wrote: > https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc > File webrtc/modules/audio_processing/audio_processing_impl.cc (right): > > https://codereview.webrtc.org/2749973003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode327 > ...
3 years, 9 months ago (2017-03-15 20:31:00 UTC) #8
hlundin-webrtc
lgtm
3 years, 9 months ago (2017-03-16 08:32:14 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/2749973003/1
3 years, 9 months ago (2017-03-16 10:49:24 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 11:22:19 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/9c192b2b06cb012b3f515923a...

Powered by Google App Engine
This is Rietveld 408576698