[RFC] Fixing pthread_* namespace issues for thrd_* symbols

Juan Manuel Torres Palma j.m.torrespalma@gmail.com
Fri May 1 11:49:00 GMT 2015


> how do you plan to solve the namespace issue for the pthread types?

Most pthread types (some of them will be required for C11 types) are
architecture dependent, so my plan was to create a new header file
(keeping all the architecture dependent defines and types here)
including definitions of types like __pthread_t.

Then the pthread.h will include it and do:
typedef __pthread_mutex_t pthread__mutex_t;

For other types like pthread_t that basically are unsigned long, will
just copy the type:
typedef unsigned long thrd_t;

Cheers.

-- 
Juan Manuel Torres Palma.
Computer Science Student at Universidad de Granada.



More information about the Libc-alpha mailing list