DescriptionSimplify 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 #
Messages
Total messages: 13 (7 generated)
|