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: [PATCHv2 1/2] nptl: Add adapt_count parameter to lll_unlock_elision


"Paul E. Murphy" <murphyp@linux.vnet.ibm.com> writes:

>  #ifndef lll_unlock_elision
> -#define lll_unlock_elision(a,b) ({ lll_unlock (a,b); 0; })
> +#define lll_unlock_elision(a,b,c) ({ lll_unlock (a,b); 0; })
>  #endif
>  
>  static int
> @@ -63,7 +63,7 @@ __pthread_mutex_unlock_usercnt (mutex, decr)
>    else if (__glibc_likely (type == PTHREAD_MUTEX_TIMED_ELISION_NP))
>      {
>        /* Don't reset the owner/users fields for elision.  */
> -      return lll_unlock_elision (mutex->__data.__lock,
> +      return lll_unlock_elision (mutex->__data.__lock, mutex->__data.__elision,
>  				      PTHREAD_MUTEX_PSHARED (mutex));

That doesn't fit together.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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