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

Unified Diff: src/core/SkThreadPriv.h

Issue 306943003: SkLazyPtr, mk. 2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: drop static Created 6 years, 7 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 | « src/core/SkLazyPtr.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkThreadPriv.h
diff --git a/src/core/SkThreadPriv.h b/src/core/SkThreadPriv.h
index a9729216064ab25d35092310e96e73dd3791eef3..c44cca53509015e783e56c79b8cc086bd931f5cd 100644
--- a/src/core/SkThreadPriv.h
+++ b/src/core/SkThreadPriv.h
@@ -14,7 +14,7 @@
/** Atomic compare and set, for pointers.
* If *addr == before, set *addr to after. Always returns previous value of *addr.
- * This must act as a compiler barrier.
+ * This must issue a release barrier on success, acquire on failure, and always a compiler barrier.
*/
static void* sk_atomic_cas(void** addr, void* before, void* after);
« no previous file with comments | « src/core/SkLazyPtr.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698