[PATCH 1/8] nptl: Add C11 threads thrd_* functions

Florian Weimer fweimer@redhat.com
Wed Nov 15 08:09:00 GMT 2017


On 09/22/2017 10:26 PM, Adhemerval Zanella wrote:
> This patch adds the thrd_* definitions from C11 threads (ISO/IEC 9899:2011),
> more specifically thrd_create, thrd_curent, rhd_detach, thrd_equal,
> thrd_exit, thrd_join, thrd_sleep, thrd_yield, and required types.
> 
> Mostly of the definitions are composed based on POSIX conterparts, such as
> thrd_t (using pthread_t).

I have skimmed the C11 discussion of these types, and C11 says that 
mtx_t et al. are “identifiers”.  To me, this suggests they are handles, 
just like pthread_t in the POSIX threads implementation.

I'm sorry, but this would make the current implementation based on 
pthread types (without indirection) invalid. 8-(

Thanks,
Florian



More information about the Libc-alpha mailing list