DescriptionClean up SkOnce:
1 Remove atExit feature: clients can do it just as well as SkOnce can.
2 Remove support for functors: no one but the unit test did that.
3 Remove support for unused non-static SkOnceFlag (no SK_ONCE_INIT).
4 Add SkOnce variants for no-arg functions so we're not forced to pass dummy values all the time.
5 Merge SkSpinlock and SkOnceFlag, making all members private.
6 More notes about memory barriers, adding an acquire load after acquiring the spinlock.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/1b81877880253c75f835eede9a8ee21b9e7b584a
Patch Set 1 #
Total comments: 2
Patch Set 2 : prefix #Patch Set 3 : unused 1 == #
Messages
Total messages: 8 (0 generated)
|