From 9daba4f4b988977b01427a47908a0ca4ab717984 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 20 Mar 2003 10:28:06 +0000 Subject: Replace __lll_add calls with atomic_exchange_and_add calls respectively. --- nptl/sysdeps/unix/sysv/linux/sem_trywait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/sysdeps/unix/sysv/linux/sem_trywait.c') diff --git a/nptl/sysdeps/unix/sysv/linux/sem_trywait.c b/nptl/sysdeps/unix/sysv/linux/sem_trywait.c index a7b60a1023..f500361143 100644 --- a/nptl/sysdeps/unix/sysv/linux/sem_trywait.c +++ b/nptl/sysdeps/unix/sysv/linux/sem_trywait.c @@ -35,7 +35,7 @@ __new_sem_trywait (sem_t *sem) if (*futex > 0) { - val = __lll_dec_if_positive (futex); + val = atomic_decrement_if_positive (futex); if (val > 0) return 0; } -- cgit 1.4.1