This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]