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

Issue 22859056: Add a BarrierClosure. (Closed)

Created:
7 years, 4 months ago by groby-ooo-7-16
Modified:
7 years, 3 months ago
Reviewers:
awong
CC:
chromium-reviews, erikwright+watch_chromium.org, darin (slow to review)
Visibility:
Public.

Description

Add a BarrierClosure. Chromium frequently needs to execute a "final" closure once a given number of other callbacks have run. BarrierClosure encapsulates that logic while staying as light-weight as possible. TBR=gbillock@chromium.org, willchan@chromium.org BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219446

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review fixes. #

Total comments: 4

Patch Set 3 : Review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -0 lines) Patch
A base/barrier_closure.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A base/barrier_closure.cc View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A base/barrier_closure_unittest.cc View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M base/base.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
groby-ooo-7-16
There are quite a few cases where Chromium could've benefited from a BarrierClosure - adding ...
7 years, 4 months ago (2013-08-22 21:10:10 UTC) #1
groby-ooo-7-16
CC'ed darin, per ajwong's recommendation.
7 years, 4 months ago (2013-08-22 21:27:29 UTC) #2
awong
Couple of nits. question: did you cross-reference this with the internal NewBarrierClosure API? If not, ...
7 years, 4 months ago (2013-08-22 21:28:33 UTC) #3
groby-ooo-7-16
Yes, I did cross-reference. AFAICT, the semantics are identical - final closure immediately on 0, ...
7 years, 4 months ago (2013-08-22 21:59:44 UTC) #4
awong
https://codereview.chromium.org/22859056/diff/9001/base/barrier_closure.cc File base/barrier_closure.cc (right): https://codereview.chromium.org/22859056/diff/9001/base/barrier_closure.cc#newcode52 base/barrier_closure.cc:52: } // base // namespace base https://codereview.chromium.org/22859056/diff/9001/base/barrier_closure.h File base/barrier_closure.h ...
7 years, 4 months ago (2013-08-22 22:05:15 UTC) #5
willchan no longer on Chromium
I' On Fri, Aug 23, 2013 at 6:05 AM, <ajwong@chromium.org> wrote: > > https://codereview.chromium.**org/22859056/diff/9001/base/** > ...
7 years, 4 months ago (2013-08-23 00:17:58 UTC) #6
willchan no longer on Chromium
I'm running off right now but I just wanted to say that I'm fine with ...
7 years, 4 months ago (2013-08-23 00:19:52 UTC) #7
groby-ooo-7-16
https://codereview.chromium.org/22859056/diff/9001/base/barrier_closure.cc File base/barrier_closure.cc (right): https://codereview.chromium.org/22859056/diff/9001/base/barrier_closure.cc#newcode52 base/barrier_closure.cc:52: } // base On 2013/08/22 22:05:16, awong wrote: > ...
7 years, 3 months ago (2013-08-24 00:27:25 UTC) #8
awong
LGTM
7 years, 3 months ago (2013-08-24 00:29:01 UTC) #9
groby-ooo-7-16
TBR'd willchan, gbillock
7 years, 3 months ago (2013-08-24 00:30:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/22859056/16001
7 years, 3 months ago (2013-08-24 00:31:24 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-08-24 15:00:37 UTC) #12
Message was sent while issue was closed.
Change committed as 219446

Powered by Google App Engine
This is Rietveld 408576698