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] Unify pthread_spin_[try]lock implementations.


> 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.


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