[PATCH] Unify pthread_spin_[try]lock implementations.

Jeff Law law@redhat.com
Wed Aug 15 17:24:00 GMT 2012


On 08/15/2012 11:10 AM, Roland McGrath wrote:
>> It seems to me that SPIN_LOCK_READS_BETWEEN_CMPXCHG may have the
>> property that varying it at runtime based on the characteristics of the
>> particular chip running the application might be worthwhile.
>
> Nothing prevents a machine from defining the macro to use a global variable
> that is set by some machine-specific initialization code.
Understood.  Just wanted to raise the issue.  No pressing need to 
resolve it now, but it's on Red Hat's radar and now it's on the 
community's radar :-)

jeff



More information about the Libc-alpha mailing list