[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
ia64 lowlevellock.h __lll_add use
- From: Ian Wienand <ianw gelato unsw edu au>
- To: phil-list redhat com
- Subject: ia64 lowlevellock.h __lll_add use
- Date: Mon, 31 Mar 2003 12:54:54 +1000
Hello,
ChangeLog states
2003-03-20 Ulrich Drepper <drepper redhat com>
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>.
Remove __lll_add, __lll_dec_if_positive, and __lll_test_and_set
definitions. Replace uses with calls to atomic_* functions.
but as of 0.32 there are still references to __lll_add in the file.
Maybe a forgotten update?
-i
Index: sysdeps/unix/sysv/linux/ia64/lowlevellock.h
===================================================================
RCS file: /home/ianw/cvs/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 lowlevellock.h
--- sysdeps/unix/sysv/linux/ia64/lowlevellock.h 31 Mar 2003 00:13:17 -0000 1.1.1.3
+++ sysdeps/unix/sysv/linux/ia64/lowlevellock.h 31 Mar 2003 01:45:08 -0000
@@ -103,7 +103,7 @@
__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 @@
__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))
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]