[RFC] Fixing pthread_* namespace issues for thrd_* symbols
Joseph Myers
joseph@codesourcery.com
Thu Jun 18 14:29:00 GMT 2015
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
More information about the Libc-alpha
mailing list