This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 04/11] Support setting elision in pthread_mutexattr_settype
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: libc-alpha at sourceware dot org, Andi Kleen <ak at linux dot jf dot intel dot com>
- Date: Fri, 28 Jun 2013 01:31:01 -0400
- Subject: Re: [PATCH 04/11] Support setting elision in pthread_mutexattr_settype
- References: <1372098290-29147-1-git-send-email-andi at firstfloor dot org> <1372098290-29147-5-git-send-email-andi at firstfloor dot org> <51CD1DF1 dot 8020803 at redhat dot com>
On 06/28/2013 01:24 AM, Carlos O'Donell wrote:
>> + if ((kind & PTHREAD_MUTEX_ELISION_FLAGS_NP) == PTHREAD_MUTEX_ELISION_FLAGS_NP)
>
> Use PTHREAD_MUTEX_TYPE_ELISION(kind)?
Nope, forgot that "TYPE_ELISION" includes the type which you don't want.
Cheers,
Carlos.