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

Unified Diff: include/private/SkOnce.h

Issue 1867863002: Convert SkRefCnt to std::atomic. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Restore to 1. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/private/SkAtomics.h ('k') | include/private/SkWeakRefCnt.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/private/SkOnce.h
diff --git a/include/private/SkOnce.h b/include/private/SkOnce.h
index 5434d9d7d9d37b80d7c1485285c85ed1ebf3577a..34eb79cd77a8d756cf98047f497793d8940c5872 100644
--- a/include/private/SkOnce.h
+++ b/include/private/SkOnce.h
@@ -83,7 +83,7 @@ static void sk_once_slow(bool* done, Lock* lock, void (*f)(Arg), Arg arg) {
//
// We'll use this in the fast path to make sure f(arg)'s effects are
// observable whenever we observe *done == true.
- sk_release_store(done, true);
+ sk_atomic_store(done, true, sk_memory_order_release);
}
lock->release();
}
« no previous file with comments | « include/private/SkAtomics.h ('k') | include/private/SkWeakRefCnt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698