[PATCH] nptl: Add pthread_thread_number_np function
Florian Weimer
fweimer@redhat.com
Thu Dec 14 20:24:00 GMT 2017
On 12/14/2017 07:56 PM, Florian Weimer wrote:
> The implementation is actually in libc.so. With a full implementation
> of pthread_self in libc.so, pthread_thread_number_np is completely
> usable without libpthread.
And once again, I forgot the NEWS entry.
I should say that this is something completely different from gettid,
and by itself usable for logging, certain concurrency-related
algorithms, and writing DRBGs (where the current thread's number can be
used to ensure that different threads get different bit sequences).
Thanks,
Florian
More information about the Libc-alpha
mailing list