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

Issue 1036993003: Fix the way locks are acquired in WebRtcAudioDeviceImpl::SetAudioRenderer. (Closed)

Created:
5 years, 9 months ago by Guido Urdaneta
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebRtcAudioDeviceImpl and WebRtcAudioRenderer reference each other and are invoked in different threads. This CL ensures that locks are taken in the same order in both threads in order to avoid deadlocks. BUG=433993 TEST=Existing WebRtc content_browsertests with TSAN enabled. Committed: https://crrev.com/5330f31cf74e3756dc2103f8c3d5840b5f6a2884 Cr-Commit-Position: refs/heads/master@{#322995}

Patch Set 1 #

Patch Set 2 : Fix the way locks are acquired in WebRtcAudioDeviceImpl::SetAudioRenderer #

Patch Set 3 : #

Patch Set 4 : Name variables in comments according to convention, extra header comment. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M build/sanitizers/tsan_suppressions.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 1 2 3 1 chunk +20 lines, -3 lines 1 comment Download

Messages

Total messages: 16 (6 generated)
Guido Urdaneta
Hi, Please take a look at my first CL.
5 years, 8 months ago (2015-03-30 10:03:25 UTC) #5
henrika (OOO until Aug 14)
LGTM. Given that you now have analyzed this code. Would it also be possible to ...
5 years, 8 months ago (2015-03-30 10:37:50 UTC) #6
henrika (OOO until Aug 14)
Not sure why, but I have two comments that are in draft state but I ...
5 years, 8 months ago (2015-03-30 10:39:46 UTC) #7
hbos_chromium
lgtm
5 years, 8 months ago (2015-03-30 11:11:30 UTC) #8
Guido Urdaneta
On 2015/03/30 10:39:46, henrika wrote: > Not sure why, but I have two comments that ...
5 years, 8 months ago (2015-03-30 11:27:20 UTC) #9
Guido Urdaneta
On 2015/03/30 10:37:50, henrika wrote: > LGTM. > > Given that you now have analyzed ...
5 years, 8 months ago (2015-03-30 11:29:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1036993003/60001
5 years, 8 months ago (2015-03-31 08:21:17 UTC) #13
tommi (sloooow) - chröme
lgtm w/comment addressed. https://codereview.chromium.org/1036993003/diff/60001/content/renderer/media/webrtc_audio_device_impl.cc File content/renderer/media/webrtc_audio_device_impl.cc (right): https://codereview.chromium.org/1036993003/diff/60001/content/renderer/media/webrtc_audio_device_impl.cc#newcode423 content/renderer/media/webrtc_audio_device_impl.cc:423: DCHECK(!renderer_.get()); Would also be good to ...
5 years, 8 months ago (2015-03-31 08:29:13 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-03-31 08:31:48 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-03-31 08:32:39 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5330f31cf74e3756dc2103f8c3d5840b5f6a2884
Cr-Commit-Position: refs/heads/master@{#322995}

Powered by Google App Engine
This is Rietveld 408576698