diff options
-rw-r--r-- | include/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/atomic.h b/include/atomic.h index 184b6c04..55d23c53 100644 --- a/include/atomic.h +++ b/include/atomic.h @@ -240,12 +240,12 @@ inline void *CompExchangePtr(XchgPtr *ptr, void *oldval, void *newval) (_val)->value = (_newval); \ } while(0) -inline void _al_mem_barrier(void) { _ReadBarrier(); } +inline void _al_mem_barrier(void) { MemoryBarrier(); } #define ATOMIC_LOAD(_val) (_al_mem_barrier(),(_val)->value) #define ATOMIC_STORE(_val, _newval) do { \ (_val)->value = (_newval); \ - _WriteBarrier(); \ + MemoryBarrier(); \ } while(0) int _al_invalid_atomic_size(); /* not defined */ |