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: [RFC] Fixing pthread_* namespace issues for thrd_* symbols


> 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.


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