[atomic] Use read-barrier for get()

This commit is contained in:
Behdad Esfahbod committed 2018-08-01 14:15:00 -07:00
1 parent 006d4f031a
commit 19b98348ff
1 file changed
+1 -1
+1 -1
View File
@@ -223,7 +223,7 @@ typedef int hb_atomic_int_impl_t;
#define hb_atomic_int_impl_get_relaxed(AI) (*(AI))
#endif
#ifndef hb_atomic_ptr_impl_get
inline void *hb_atomic_ptr_impl_get (void **P) { void *v = *P; _hb_memory_barrier (); return v; }
inline void *hb_atomic_ptr_impl_get (void **P) { void *v = *P; _hb_memory_r_barrier (); return v; }
#endif