[PATCH][BZ #15790] Have pthread_mutexattr_gettype mask out the elision bit.

Rich Felker dalias@aerifal.cx
Fri Nov 8 04:17:00 GMT 2013


On Thu, Nov 07, 2013 at 06:57:15PM +0100, Andi Kleen wrote:
> > Andi, it is unclear that if this is desired behaviour, one argument
> > againist could be that if user wants to clone mutex type like
> > 
> > int tp;
> > pthread_mutexattr_gettype(a1, &tp);
> > pthread_mutexattr_settype(a2, tp);
> > 
> > should it preserve elision or not?
> 
> Yes it should.

Sorry, it can't. The interface contact is set by POSIX, not something
for glibc to design.

Rich



More information about the Libc-alpha mailing list