This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 03/11] Add external interface changes: new lock types for pthread_mutex_t
- From: Andi Kleen <andi at firstfloor dot org>
- To: Torvald Riegel <triegel at redhat dot com>
- Cc: Andi Kleen <andi at firstfloor dot org>, libc-alpha at sourceware dot org, Andi Kleen <ak at linux dot jf dot intel dot com>
- Date: Sat, 15 Jun 2013 16:20:39 +0200
- Subject: Re: [PATCH 03/11] Add external interface changes: new lock types for pthread_mutex_t
- References: <1370969416-8337-1-git-send-email-andi at firstfloor dot org> <1370969416-8337-4-git-send-email-andi at firstfloor dot org> <1371140842 dot 16968 dot 19094 dot camel at triegel dot csb> <20130613211520 dot GP6123 at two dot firstfloor dot org> <1371192753 dot 16968 dot 19724 dot camel at triegel dot csb> <20130614131729 dot GR6123 at two dot firstfloor dot org> <20130614134219 dot GS6123 at two dot firstfloor dot org> <20130614142029 dot GV6123 at two dot firstfloor dot org> <1371305943 dot 16968 dot 20608 dot camel at triegel dot csb>
> Why don't you just say that the relock semantics change to undefined
> behavior, thus making PTHREAD_MUTEX_NORMAL have semantics equivalent to
> PTHREAD_MUTEX_DEFAULT? That way, you don't have to define new
> semantics, and it's easier to remember and grok for users that are
> already familiar with the POSIX mutex types.
Ok I can add that too.
-Andi