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

Unified Diff: runtime/vm/atomic.h

Issue 2176803003: Add new atomic operations and use them in two places. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | runtime/vm/atomic_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic.h
diff --git a/runtime/vm/atomic.h b/runtime/vm/atomic.h
index b6e5f280001ae5f61fa3c8e10d339f9a91de478d..edf1990fe13585dfac659f90a82c272b6e4bd2d2 100644
--- a/runtime/vm/atomic.h
+++ b/runtime/vm/atomic.h
@@ -60,6 +60,10 @@ class AtomicOperations : public AllStatic {
static intptr_t LoadRelaxedIntPtr(intptr_t* ptr) {
return *static_cast<volatile intptr_t*>(ptr);
}
+
+ template<typename T> static T LoadAcquire(T* ptr);
+
+ template<typename T> static void StoreRelease(T* ptr, T val);
};
« no previous file with comments | « no previous file | runtime/vm/atomic_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698