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


On Thu, 18 Jun 2015, Juan Manuel Torres Palma wrote:

> Sorry for late reply.
> 
> My solution so far is this one, only for x86, will work on other
> architectures as long as this strategy is acceptable. What I have
> mainly done is copy pthread_mutex_t and pthread_cond_t renaming them,
> so I won't be breaking any ABI and namespaces will be clean. Let me
> know if it's acceptable.

Contents shouldn't be duplicated, but you could e.g. have a shared header 
that defines macros such as __PTHREAD_COND_T_CONTENT, so cnd_t would be

typedef union
{
  __PTHREAD_COND_T_CONTENT
} cnd_t;

and pthread_cond_t similarly.

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