mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
* sysdeps/unix/sysv/linux/alpha/lowlevellock.h
(__lll_robust_timedlock): Pass private as last argument to __lll_robust_timedlock_wait. (__lll_unlock): Fix a pasto. 2007-08-16 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (__lll_robust_timedlock): Pass private as last argument to __lll_robust_timedlock_wait. (__lll_unlock): Fix a pasto.
This commit is contained in:
parent
91ddd9c448
commit
3e8d1eabc9
@ -1,3 +1,10 @@
|
||||
2007-08-16 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/alpha/lowlevellock.h
|
||||
(__lll_robust_timedlock): Pass private as last argument to
|
||||
__lll_robust_timedlock_wait.
|
||||
(__lll_unlock): Fix a pasto.
|
||||
|
||||
2007-08-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/sparc/internaltypes.h (sparc_new_sem,
|
||||
|
@ -219,7 +219,7 @@ __lll_robust_timedlock (int *futex, const struct timespec *abstime,
|
||||
{
|
||||
int result = 0;
|
||||
if (atomic_compare_and_exchange_bool_acq (futex, id, 0) != 0)
|
||||
result = __lll_robust_timedlock_wait (futex, abstime);
|
||||
result = __lll_robust_timedlock_wait (futex, abstime, private);
|
||||
return result;
|
||||
}
|
||||
#define lll_robust_timedlock(futex, abstime, id, private) \
|
||||
@ -229,7 +229,7 @@ __lll_robust_timedlock (int *futex, const struct timespec *abstime,
|
||||
#define __lll_unlock(futex, private) \
|
||||
(void) \
|
||||
({ int *__futex = (futex); \
|
||||
({ int __oldval = atomic_exchange_rel (__futex, 0); \
|
||||
int __oldval = atomic_exchange_rel (__futex, 0); \
|
||||
if (__builtin_expect (__oldval > 1, 0)) \
|
||||
lll_futex_wake (__futex, 1, private); \
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user