[PATCH][s390,ppc] Use FUTEX_WAIT_BITSET for *timedwait

Siddhesh Poyarekar siddhesh@redhat.com
Fri Oct 26 10:20:00 GMT 2012


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: futex-wait-bitset-2.patch
Type: text/x-patch
Size: 5416 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121026/78f828a5/attachment.bin>


More information about the Libc-alpha mailing list