[PATCH] Clean pthread functions namespace for C11 threads

Joseph Myers joseph@codesourcery.com
Sat Jun 27 20:29:00 GMT 2015


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



More information about the Libc-alpha mailing list