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

Unified Diff: src/ports/SkThread_win.cpp

Issue 18770007: Add a 'unique' method to SkRefCnt, document the usage, and add support. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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
« src/core/SkPathRef.h ('K') | « src/ports/SkThread_pthread.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkThread_win.cpp
===================================================================
--- src/ports/SkThread_win.cpp (revision 10052)
+++ src/ports/SkThread_win.cpp (working copy)
@@ -49,6 +49,10 @@
}
void sk_membar_aquire__after_atomic_conditional_inc() { }
+int32_t sk_atomic_unprotected_read(const volatile int32_t & x) {
+ return x;
+}
+
SkMutex::SkMutex() {
SK_COMPILE_ASSERT(sizeof(fStorage) > sizeof(CRITICAL_SECTION),
NotEnoughSizeForCriticalSection);
« src/core/SkPathRef.h ('K') | « src/ports/SkThread_pthread.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698