[atomic] Use read-barrier for get()

This commit is contained in:
Behdad Esfahbod 2018-08-01 13:59:59 -07:00
parent 006d4f031a
commit 19b98348ff
1 changed files with 1 additions and 1 deletions

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