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] Clean pthread functions namespace for C11 threads


On Fri, 26 Jun 2015, Juan Manuel Torres Palma wrote:

> It's true that during the implementation of mtx_init, I had to use
> pthread_mutexattr_init and pthread_mutex_settype, that weren't
> initially in my plans. Do you think more functions are affected apart
> from these?

Part of the C11 threads implementation process should be adding threads.h 
to the conform/ test coverage.  That means conform/data/threads.h-data 
matching C11 requirements; adding threads.h to conformtest-headers-ISO11 
in conform/Makefile; ensuring that linknamespace-libs-ISO11 includes any 
libraries required for the C11 threads functions.  Then, make sure the 
tests for ISO11 all pass; any linknamespace failures for threads.h 
indicate cases where you need to call __* names with the public names 
being weak aliases.  That will help you catch any non-obvious cases where 
the call to a non-C11 function might be at several levels of indirection 
from the C11 threads implementation.

-- 
Joseph S. Myers
joseph@codesourcery.com


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