aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/shadertext.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-02-25 12:51:55 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-25 12:51:55 -0800
commit59c9203321cf4afb48597f39e4bdd4ae91da12a0 (patch)
tree1c446194af3cdc6d2b68c6e137c17450c72b52db /gm/shadertext.cpp
parentedeb7a97aded2107fd6a25562e1bb7fdcb96c958 (diff)
Fix the race to set the new gen ID.
There's a small window where two threads can both see the gen ID is zero, both go get new distinct genIDs, but race to write them. This now uses compare_exchange to read and leave the winner's ID in place when there's a race. SkAtomics isn't public. TBR=reed@google.com BUG=skia: Review URL: https://codereview.chromium.org/956013002
Diffstat (limited to 'gm/shadertext.cpp')
0 files changed, 0 insertions, 0 deletions