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

Issue 2527813002: Remove unnecessary lock on setClient(). (Closed)

Created:
4 years ago by DaleCurtis
Modified:
4 years ago
Reviewers:
o1ka
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary lock on setClient(). The lock is unnecessary because the operation is a no-op when client is unchanged (the vast majority of cases). BUG=615589, 647498 TEST=none Committed: https://crrev.com/8be2e3fd36fb909ba695c0bd84ef9f97d3855ac3 Cr-Commit-Position: refs/heads/master@{#434380}

Patch Set 1 #

Patch Set 2 : Fix comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -9 lines) Patch
M media/blink/webaudiosourceprovider_impl.cc View 1 2 chunks +15 lines, -9 lines 2 comments Download

Messages

Total messages: 22 (14 generated)
DaleCurtis
Probably after this lands we can up the authorization timeouts too since the block will ...
4 years ago (2016-11-23 23:23:23 UTC) #3
DaleCurtis
Actually, after looking at AudioRendererMixerInput more closely we can't remove the lock here since setClient() ...
4 years ago (2016-11-24 00:28:26 UTC) #6
o1ka
lgtm if we state that setClient() is not thread-safe. https://codereview.chromium.org/2527813002/diff/60001/media/blink/webaudiosourceprovider_impl.cc File media/blink/webaudiosourceprovider_impl.cc (right): https://codereview.chromium.org/2527813002/diff/60001/media/blink/webaudiosourceprovider_impl.cc#newcode110 media/blink/webaudiosourceprovider_impl.cc:110: ...
4 years ago (2016-11-24 13:21:16 UTC) #14
DaleCurtis
https://codereview.chromium.org/2527813002/diff/60001/media/blink/webaudiosourceprovider_impl.cc File media/blink/webaudiosourceprovider_impl.cc (right): https://codereview.chromium.org/2527813002/diff/60001/media/blink/webaudiosourceprovider_impl.cc#newcode110 media/blink/webaudiosourceprovider_impl.cc:110: if (client_ == client) On 2016/11/24 at 13:21:16, o1ka ...
4 years ago (2016-11-24 18:06:53 UTC) #15
o1ka
On 2016/11/24 18:06:53, DaleCurtis wrote: > https://codereview.chromium.org/2527813002/diff/60001/media/blink/webaudiosourceprovider_impl.cc > File media/blink/webaudiosourceprovider_impl.cc (right): > > https://codereview.chromium.org/2527813002/diff/60001/media/blink/webaudiosourceprovider_impl.cc#newcode110 > ...
4 years ago (2016-11-24 18:14:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2527813002/60001
4 years ago (2016-11-24 18:36:30 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years ago (2016-11-24 19:37:26 UTC) #20
commit-bot: I haz the power
4 years ago (2016-11-24 19:40:05 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8be2e3fd36fb909ba695c0bd84ef9f97d3855ac3
Cr-Commit-Position: refs/heads/master@{#434380}

Powered by Google App Engine
This is Rietveld 408576698