From 6f85344ee3492c36fc01f8fe77e9802dd24a66ab Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Tue, 17 Jun 2008 11:44:25 +0000 Subject: [PATCH] 2008-06-17 Guy Martin [BZ #5957] * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Use shared futex in lll_wait_tid(). --- ChangeLog.hppa | 6 ++++++ sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog.hppa b/ChangeLog.hppa index 67524bae36..fc76d6d249 100644 --- a/ChangeLog.hppa +++ b/ChangeLog.hppa @@ -1,3 +1,9 @@ +2008-06-17 Guy Martin + + [BZ #5957] + * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: + Use shared futex in lll_wait_tid(). + 2008-05-12 Aurelien Jarno [BZ #6506] diff --git a/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h b/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h index ec907aefbf..6998a91b64 100644 --- a/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h +++ b/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h @@ -325,12 +325,12 @@ extern int lll_unlock_wake_cb (lll_lock_t *__futex) attribute_hidden; thread ID while the clone is running and is reset to zero afterwards. */ #define lll_wait_tid(tid) \ - do \ - { \ - __typeof (tid) __tid; \ - while ((__tid = (tid)) != 0) \ - lll_futex_wait (&(tid), __tid, 0); \ - } \ + do \ + { \ + __typeof (tid) __tid; \ + while ((__tid = (tid)) != 0) \ + lll_futex_wait (&(tid), __tid, LLL_SHARED); \ + } \ while (0) extern int __lll_timedwait_tid (int *, const struct timespec *) -- 2.11.4.GIT