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

Florian Weimer fweimer@redhat.com
Fri Jul 13 09:45:00 GMT 2018


On 02/02/2018 06:04 PM, Adhemerval Zanella wrote:
>    2. thrd_sleep uses nanosleep internal direct syscall to avoid clobbering
>       errno, to handle expected standard return codes, and to avoid making
>       the call a POSIX cancellation entrypoint.

Isn't this inconsistent with the conditional variable wait and thread 
join functions, which are still cancellation points?

On the other hand, a sleep function which is not a cancellation point 
may be useful.

Thanks,
Florian



More information about the Libc-alpha mailing list