diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2022-09-26 16:58:08 +0100 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2022-09-26 16:58:08 +0100 |
commit | 22f4ab2d200f605441cdd2b49ec9c97d43eb11c9 (patch) | |
tree | 900238f342a45d6c899cad578d58546336ffe5b9 /mach | |
parent | c02e29a0ba47d636281e1a026444a1a0a254aa12 (diff) | |
download | glibc-22f4ab2d200f605441cdd2b49ec9c97d43eb11c9.zip glibc-22f4ab2d200f605441cdd2b49ec9c97d43eb11c9.tar.gz glibc-22f4ab2d200f605441cdd2b49ec9c97d43eb11c9.tar.bz2 |
Use atomic_exchange_release/acquire
Rename atomic_exchange_rel/acq to use atomic_exchange_release/acquire
since these map to the standard C11 atomic builtins.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'mach')
-rw-r--r-- | mach/lowlevellock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mach/lowlevellock.h b/mach/lowlevellock.h index a4f6af4..d0adbd4 100644 --- a/mach/lowlevellock.h +++ b/mach/lowlevellock.h @@ -78,7 +78,7 @@ extern kern_return_t __gsync_wait_intr || atomic_compare_and_exchange_bool_acq (__iptr, 1, 0) != 0) \ while (1) \ { \ - if (atomic_exchange_acq (__iptr, 2) == 0) \ + if (atomic_exchange_acquire (__iptr, 2) == 0) \ break; \ __lll_wait (__iptr, 2, __flags); \ } \ @@ -102,7 +102,7 @@ extern kern_return_t __gsync_wait_intr #define __lll_unlock(ptr, flags) \ ({ \ int *__iptr = (int *)(ptr); \ - if (atomic_exchange_rel (__iptr, 0) == 2) \ + if (atomic_exchange_release (__iptr, 0) == 2) \ __lll_wake (__iptr, (flags)); \ (void)0; \ }) |