summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-20 10:28:06 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-20 10:28:06 +0000
commit9daba4f4b988977b01427a47908a0ca4ab717984 (patch)
treed1ae2cd13fc64e2b89f65cc9940f9ab0ae81aa30 /nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
parent53fcb885017b3c01e960c0ad68616dbad61f9192 (diff)
Replace __lll_add calls with atomic_exchange_and_add calls respectively.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/sem_timedwait.c')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sem_timedwait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c b/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
index e1b32f4e78..632cce4391 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
@@ -36,7 +36,7 @@ sem_timedwait (sem_t *sem, const struct timespec *abstime)
if (*futex > 0)
{
- val = __lll_dec_if_positive (futex);
+ val = atomic_decrement_if_positive (futex);
if (val > 0)
return 0;
}
@@ -75,7 +75,7 @@ sem_timedwait (sem_t *sem, const struct timespec *abstime)
if (err != 0 && err != -EWOULDBLOCK)
goto error_return;
- val = __lll_dec_if_positive (futex);
+ val = atomic_decrement_if_positive (futex);
}
while (val <= 0);