diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-05-30 03:47:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-05-30 03:47:32 +0000 |
commit | 65d46efed2d82da579f9dfb72b51f77fb77470d2 (patch) | |
tree | f5bfe32057ed41185a52395350e764ec1018e77f /nptl/sysdeps/unix/sysv | |
parent | 284bdc42e866adf2d5eafd83ab471735350e2356 (diff) | |
download | glibc-65d46efed2d82da579f9dfb72b51f77fb77470d2.tar glibc-65d46efed2d82da579f9dfb72b51f77fb77470d2.tar.gz glibc-65d46efed2d82da579f9dfb72b51f77fb77470d2.tar.bz2 glibc-65d46efed2d82da579f9dfb72b51f77fb77470d2.zip |
Update.
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h
(__lll_mutex_unlock_force): New function.
(lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
* tst-rwlock7.c (do_test): Use correct format specifier.
Diffstat (limited to 'nptl/sysdeps/unix/sysv')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h index fadf5f96ad..525869b302 100644 --- a/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h +++ b/nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h @@ -179,8 +179,17 @@ __lll_mutex_unlock (int *futex) #define lll_mutex_unlock(futex) \ __lll_mutex_unlock(&(futex)) + +static inline void +__attribute__ ((always_inline)) +__lll_mutex_unlock_force (int *futex) +{ + (void) atomic_exchange_rel (futex, 0); + lll_futex_wake (futex, 1); +} #define lll_mutex_unlock_force(futex) \ - lll_futex_wake (&(futex), 1) + __lll_mutex_unlock_force(&(futex)) + #define lll_mutex_islocked(futex) \ (futex != 0) |