Index: runtime/vm/atomic_fuchsia.h |
diff --git a/runtime/vm/atomic_fuchsia.h b/runtime/vm/atomic_fuchsia.h |
index 67dd329b66bd169e991fcfafb0a909b61b5ed44b..a8cca2fe9c8927a46e628ce73d4899b532b34881 100644 |
--- a/runtime/vm/atomic_fuchsia.h |
+++ b/runtime/vm/atomic_fuchsia.h |
@@ -15,6 +15,16 @@ |
namespace dart { |
+template<typename T> T AtomicOperations::LoadAcquire(T* ptr) { |
+ return __atomic_load_n(ptr, __ATOMIC_ACQUIRE); |
+} |
+ |
+ |
+template<typename T> void AtomicOperations::StoreRelease(T* ptr, T val) { |
+ __atomic_store_n(ptr, val, __ATOMIC_RELEASE); |
+} |
+ |
+ |
inline uintptr_t AtomicOperations::FetchAndIncrement(uintptr_t* p) { |
return __sync_fetch_and_add(p, 1); |
} |