diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-20 10:28:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-20 10:28:06 +0000 |
commit | 9daba4f4b988977b01427a47908a0ca4ab717984 (patch) | |
tree | d1ae2cd13fc64e2b89f65cc9940f9ab0ae81aa30 /nptl/sysdeps/unix/sysv/linux/sem_trywait.c | |
parent | 53fcb885017b3c01e960c0ad68616dbad61f9192 (diff) | |
download | glibc-9daba4f4b988977b01427a47908a0ca4ab717984.tar glibc-9daba4f4b988977b01427a47908a0ca4ab717984.tar.gz glibc-9daba4f4b988977b01427a47908a0ca4ab717984.tar.bz2 glibc-9daba4f4b988977b01427a47908a0ca4ab717984.zip |
Replace __lll_add calls with atomic_exchange_and_add calls respectively.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/sem_trywait.c')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/sem_trywait.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |