diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-05-30 04:53:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-05-30 04:53:50 +0000 |
commit | b8ba4a2741c2d9e1b723615228bcacedb1b941c2 (patch) | |
tree | 110bceb6272be371fb4487157a3fe573024ba02d /nptl/sysdeps/unix/sysv/linux/s390 | |
parent | 65d46efed2d82da579f9dfb72b51f77fb77470d2 (diff) | |
download | glibc-b8ba4a2741c2d9e1b723615228bcacedb1b941c2.tar glibc-b8ba4a2741c2d9e1b723615228bcacedb1b941c2.tar.gz glibc-b8ba4a2741c2d9e1b723615228bcacedb1b941c2.tar.bz2 glibc-b8ba4a2741c2d9e1b723615228bcacedb1b941c2.zip |
Update.
* sysdeps/unix/sysv/linux/s390/lowlevellock.h
(__lll_mutex_unlock_force): New function
(lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/s390')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h index 62a06b5c5e..4d95319f1c 100644 --- a/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h +++ b/nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h @@ -170,7 +170,7 @@ __attribute__ ((always_inline)) __lll_mutex_unlock (int *futex) { int oldval; - int newval; + int newval = 0; lll_compare_and_swap (futex, oldval, newval, "slr %2,%2"); if (oldval > 1) @@ -179,8 +179,16 @@ __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) +{ + *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) |