mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[atomic] Use read-barrier for get()
This commit is contained in:
1 parent
006d4f031a
commit
19b98348ff
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user