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

Unified Diff: src/core/SkThreadPriv.h

Issue 305753002: Spin off just SkLazyFnPtr from 305513002. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkThreadPriv again 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/SkLazyFnPtr.h ('k') | src/core/SkUtils.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
new file mode 100644
index 0000000000000000000000000000000000000000..a9729216064ab25d35092310e96e73dd3791eef3
--- /dev/null
+++ b/src/core/SkThreadPriv.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkThreadPriv_DEFINED
+#define SkThreadPriv_DEFINED
+
+#include "SkTypes.h"
+
+// SK_ATOMICS_PLATFORM_H must provide inline implementations for the following declarations.
+
+/** 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.
+ */
+static void* sk_atomic_cas(void** addr, void* before, void* after);
+
+#include SK_ATOMICS_PLATFORM_H
+
+#endif//SkThreadPriv_DEFINED
« no previous file with comments | « src/core/SkLazyFnPtr.h ('k') | src/core/SkUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698