From 211d90c524db8fcc32a134eaf80d969eff8c3862 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 1 Apr 2003 01:24:00 +0000 Subject: Update. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_mutex_lock): Use atomic_exchange_and_add instead of __lll_add. (__lll_mutex_timedlock): Likewise. Patch by Ian Wienand. 2003-03-24 Steven Munroe * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h (SINGLE_THREAD_P): Fix typo. * tst-cancel-wrappers.sh: Handle '.'ed symbols. 2003-03-31 Ulrich Drepper * Makefile (tests): Add tst-align. * tst-align.c: New file. * sysdeps/i386/Makefile: Define CFLAGS-tst-align. * sysdeps/x86_64/Makefile: Likewise. * tst-tsd2.c: Add casts to avoid warnings. --- nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h') diff --git a/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h index 8fa96ed6a2..24cbfe8cc3 100644 --- a/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h +++ b/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h @@ -103,7 +103,7 @@ static inline void __attribute__ ((always_inline)) __lll_mutex_lock (int *futex) { - int val = __lll_add (futex, 1); + int val = atomic_exchange_and_add (futex, 1); if (__builtin_expect (val != 0, 0)) __lll_lock_wait (futex, val); @@ -119,7 +119,7 @@ static inline int __attribute__ ((always_inline)) __lll_mutex_timedlock (int *futex, const struct timespec *abstime) { - int val = __lll_add (futex, 1); + int val = atomic_exchange_and_add (futex, 1); int result = 0; if (__builtin_expect (val != 0, 0)) -- cgit 1.4.1