[PATCH][s390,ppc] Use FUTEX_WAIT_BITSET for *timedwait
Jeff Law
law@redhat.com
Fri Oct 26 17:56:00 GMT 2012
On 10/26/2012 04:19 AM, Siddhesh Poyarekar wrote:
> Hi,
>
> Here's the second patch that implements
> pthread_rwlock_timed*lock and lll_robust_timedlock_wait using
> FUTEX_WAIT_BITSET if available. It needs the earlier FUTEX_WAIT_BITSET
> patch to work correctly. I have also committed this patch to the
> siddhesh/wait_bitset branch (and learned that rebases are only good
> when you're working locally).
>
> This is again tested on s390 and ppc. If both patches are OK, I will
> fold all of them into a single commit if that is fine (with a single
> ChangeLog of course).
>
>
> Regards,
> Siddhesh
>
> nptl/ChangeLog:
>
> * pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
> Time out if absolute timeout is negative.
> [__ASSUME_FUTEX_CLOCK_REALTIME &&
> lll_futex_timed_wait_bitset]: Use lll_futex_timed_wait_bitset.
> * pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
> Likewise.
> * sysdeps/unix/sysv/linux/lowlevelrobustlock.c
> (__lll_robust_timedlock_wait): Likewise.
This is fine. Obviously it is dependent on the prior patch which isn't
approved yet.
jeff
More information about the Libc-alpha
mailing list