diff options
author | Richard Braun <rbraun@sceen.net> | 2017-05-29 18:34:46 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-05-29 18:34:46 +0200 |
commit | 1c6a75ce939d2e7ffd12a3edac7618eb63447e09 (patch) | |
tree | e2dc8472d1bcdf3f6c86ab2a5405cf8917a725ca /kern/atomic.h | |
parent | e30e2f39a145d61ddf3d3eb450b5771a90e8c0f2 (diff) |
kern/atomic: provide _acq_rel macros instead of _seq_cst
Diffstat (limited to 'kern/atomic.h')
-rw-r--r-- | kern/atomic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/atomic.h b/kern/atomic.h index 9e26ad5a..75b07012 100644 --- a/kern/atomic.h +++ b/kern/atomic.h @@ -122,12 +122,12 @@ MACRO_END #define atomic_cas_release(ptr, oval, nval) \ atomic_cas(ptr, oval, nval, ATOMIC_RELEASE) -#define atomic_cas_seq_cst(ptr, oval, nval) \ - atomic_cas(ptr, oval, nval, ATOMIC_SEQ_CST) +#define atomic_cas_acq_rel(ptr, oval, nval) \ + atomic_cas(ptr, oval, nval, ATOMIC_ACQ_REL) #define atomic_swap_acquire(ptr, val) atomic_swap(ptr, val, ATOMIC_ACQUIRE) #define atomic_swap_release(ptr, val) atomic_swap(ptr, val, ATOMIC_RELEASE) -#define atomic_swap_seq_cst(ptr, val) atomic_swap(ptr, val, ATOMIC_SEQ_CST) +#define atomic_swap_acq_rel(ptr, val) atomic_swap(ptr, val, ATOMIC_ACQ_REL) #define atomic_fetch_add_acq_rel(ptr, val) \ atomic_fetch_add(ptr, val, ATOMIC_ACQ_REL) |