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

Issue 1951013004: Simplify implementation of SkOnce to not need so many comments. (Closed)

Created:
4 years, 7 months ago by mtklein_C
Modified:
4 years, 7 months ago
Reviewers:
herb_g, mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Simplify implementation of SkOnce to not need so many comments. I think this version reads more clearly, and the key invariants are expressed in code rather than comments: - race losers always go through an acquire - we never exit the function unless fState is Done BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1951013004 Committed: https://skia.googlesource.com/skia/+/b37c68ad42ae7880e702649a01655165c7e12acc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -32 lines) Patch
M include/private/SkOnce.h View 1 chunk +10 lines, -32 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951013004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951013004/1
4 years, 7 months ago (2016-05-04 20:17:03 UTC) #3
mtklein_C
4 years, 7 months ago (2016-05-04 20:24:36 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-04 20:32:15 UTC) #7
reed1
lgtm
4 years, 7 months ago (2016-05-04 20:50:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951013004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951013004/1
4 years, 7 months ago (2016-05-04 20:56:33 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 20:57:33 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/b37c68ad42ae7880e702649a01655165c7e12acc

Powered by Google App Engine
This is Rietveld 408576698