aboutsummaryrefslogtreecommitdiffstats
path: root/include/atomic.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-07-27 18:31:10 -0700
committerChris Robinson <[email protected]>2014-07-27 18:31:10 -0700
commit38e8dc8540f446e11c9df2ad0bf26a32a120ed6f (patch)
treeb726233f2f3729c1ebd63592444d1d522afc6439 /include/atomic.h
parent6864053eee2393e203b2155681ab585a713af48a (diff)
Use a full memory barrier for Windows
Diffstat (limited to 'include/atomic.h')
-rw-r--r--include/atomic.h4
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 */