mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-11 21:41:51 +03:00
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.
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
2003-05-29 Ulrich Drepper <drepper@redhat.com>
|
2003-05-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
|
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
|
||||||
Find break parameter in correct asm argument.
|
Find break parameter in correct asm argument.
|
||||||
|
|
||||||
|
@ -179,8 +179,17 @@ __lll_mutex_unlock (int *futex)
|
|||||||
#define lll_mutex_unlock(futex) \
|
#define lll_mutex_unlock(futex) \
|
||||||
__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) \
|
#define lll_mutex_unlock_force(futex) \
|
||||||
lll_futex_wake (&(futex), 1)
|
__lll_mutex_unlock_force(&(futex))
|
||||||
|
|
||||||
|
|
||||||
#define lll_mutex_islocked(futex) \
|
#define lll_mutex_islocked(futex) \
|
||||||
(futex != 0)
|
(futex != 0)
|
||||||
|
@ -161,7 +161,7 @@ do_test (void)
|
|||||||
}
|
}
|
||||||
if (status != NULL)
|
if (status != NULL)
|
||||||
{
|
{
|
||||||
printf ("failure in round %d\n", cnt);
|
printf ("failure in round %Zu\n", cnt);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user