diff options
Diffstat (limited to 'mach/lowlevellock.h')
-rw-r--r-- | mach/lowlevellock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mach/lowlevellock.h b/mach/lowlevellock.h index 058c63a..ddff44d 100644 --- a/mach/lowlevellock.h +++ b/mach/lowlevellock.h @@ -49,8 +49,8 @@ ({ \ int *__iptr = (int *)(ptr); \ int __flags = (flags); \ - if (*__iptr != 0 || \ - atomic_compare_and_exchange_bool_acq (__iptr, 1, 0) != 0) \ + if (*__iptr != 0 \ + || atomic_compare_and_exchange_bool_acq (__iptr, 1, 0) != 0) \ while (1) \ { \ if (atomic_exchange_acq (__iptr, 2) == 0) \ @@ -65,8 +65,8 @@ #define lll_trylock(ptr) \ ({ \ int *__iptr = (int *)(ptr); \ - *__iptr == 0 && \ - atomic_compare_and_exchange_bool_acq (__iptr, 1, 0) == 0 ? 0 : -1; \ + *__iptr == 0 \ + && atomic_compare_and_exchange_bool_acq (__iptr, 1, 0) == 0 ? 0 : -1; \ }) /* Release the lock at PTR. */ |